I need to get a random decimal number between 0 and 1. How to do it in MMF.
Thanks
Printable View
I need to get a random decimal number between 0 and 1. How to do it in MMF.
Thanks
I think the answer is this 0.1 + Random(100) / 100.0. But even though it gives me decimals from .01 to 1, why does it give me numbers above 1. I am getting anything from 1.01 to 1.08.
oops, I did .01 instead of 0.0. Its working now.