Oct-28-2019, 01:59 AM
How would one scale some random numbers within a specific range in Python, say [0,pi]? Would simply
fmod(random_number/pi)
do it?
Scaling random numbers within specific range
|
Oct-28-2019, 01:59 AM
How would one scale some random numbers within a specific range in Python, say [0,pi]? Would simply
fmod(random_number/pi) do it?
Oct-28-2019, 02:35 AM
If you have random numbers on a range (0, 1), multiplying them by n puts them on a range from (0, n).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Oct-28-2019, 02:38 AM
Say the random numbers are not explicitly given, i.e. we don't know in which interval they're in. How would one work around that?
Oct-28-2019, 02:44 AM
Generate a bunch of them and estimate the interval?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Oct-28-2019, 11:22 AM
Depends on the application. Can you get all the random numbers into a list and then see the min and max? I take it you are not generating the random numbers but receiving them for analysis?
|
|