Butters261285
Programmer
Here are some useful Lingo codes for generating different types of random numbers:
Any random number
random(x) (replace x with a number to show the maximum amount)
Between 0 and 10
random(11) - 1
Between 50 and 100
random(51) + 49
Decimals between 0 and 1
(random(101) - 1)/100.0
To generate floating point numbers and add a random interger
random(x) + (random(101) - 1)/100.0 (replace x with a number)
Hope these come in useful to people ^_^
Any random number
random(x) (replace x with a number to show the maximum amount)
Between 0 and 10
random(11) - 1
Between 50 and 100
random(51) + 49
Decimals between 0 and 1
(random(101) - 1)/100.0
To generate floating point numbers and add a random interger
random(x) + (random(101) - 1)/100.0 (replace x with a number)
Hope these come in useful to people ^_^