Here's the deal. I need to randomize a decimal value (or values) which is between given arguments, let's say 3.7 -6.2. Does .NET have some handy classes to take a look on, or do I need to get some other solution?
Randomizing from 3-6 works fine, but I need to have more accurate numbers here.
I've been thinking about randomizing the numbers and decimals separately (eg. between 3.7 and 6.2 I'd first randomize between 3 and 6, then the decimals from 0-9),add the numbers resulting in a decimal number, and then checking if the randomized value is less (or equal) than 6.2 and more (or equal) than 3.7, but that is a very very clumsy solution.
Any tips?
Randomizing from 3-6 works fine, but I need to have more accurate numbers here.
I've been thinking about randomizing the numbers and decimals separately (eg. between 3.7 and 6.2 I'd first randomize between 3 and 6, then the decimals from 0-9),add the numbers resulting in a decimal number, and then checking if the randomized value is less (or equal) than 6.2 and more (or equal) than 3.7, but that is a very very clumsy solution.
Any tips?