Hello,
Can Math.Random randomize a number with two zeros after the decimal point?
I want a 4 digits number (integer) and would like to check the option of, for example, 0.0012... since i multiply the randomized number by 10000.
Thanks
Printable View
Hello,
Can Math.Random randomize a number with two zeros after the decimal point?
I want a 4 digits number (integer) and would like to check the option of, for example, 0.0012... since i multiply the randomized number by 10000.
Thanks
Math.random method returns a double between 0 and 1 no more specifications!
If you divide the random number that is returned by 100, then it would guarantee you that you have two zeros after the decimal point. Or I've missed something :ehh: