Python Forum
Scaling random numbers within specific range
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scaling random numbers within specific range
#1
How would one scale some random numbers within a specific range in Python, say [0,pi]? Would simply fmod(random_number/pi) do it?
Reply


Messages In This Thread
Scaling random numbers within specific range - by schniefen - Oct-28-2019, 01:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Random Generator: From Word to Numbers, from Numbers to n possibles Words Yamiyozx 2 1,477 Jan-02-2023, 05:08 PM
Last Post: deanhystad
  Convert list of numbers to string of numbers kam_uk 5 3,084 Nov-21-2020, 03:10 PM
Last Post: deanhystad
  quiver plot scaling help StillAnotherDave 1 1,776 Oct-26-2020, 09:17 AM
Last Post: StillAnotherDave
  How to Generate and Print An Array with Random Numbers in Python in the johnnynitro99293 14 9,755 Sep-20-2019, 11:56 AM
Last Post: ichabod801
  Scaling elements of marix. pawlo392 1 2,194 May-16-2019, 11:37 PM
Last Post: michalmonday
  WaveCopy and Amplitude Scaling kgbprod 3 3,479 Apr-24-2019, 05:49 PM
Last Post: kgbprod
  python homework print the sum of a range of numbers from x to y kirito85 3 3,304 Oct-28-2018, 08:56 AM
Last Post: kirito85
  random numbers and stats cliffhop23 2 6,953 Feb-22-2018, 09:16 PM
Last Post: glidecode
  Regular Expressions in Files (find all phone numbers and credit card numbers) Amirsalar 2 4,151 Dec-05-2017, 09:48 AM
Last Post: DeaD_EyE
  NEED HELP Pseudo-Random Numbers Kongurinn 9 5,522 Oct-23-2017, 04:17 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020