+ 1
How can I generate random "decimals" in C#?
2 odpowiedzi
+ 2
Did a little search on google and did find 3 methods.
1) divide a integer generated value by 100
2) generate the integer part and the decimal part separately and concatenate in a string.
3) rnd.NextDouble() (where rnd is your random - object)
I haven't used it myself, but you can try one of these methods
http://csharpindepth.com/Articles/Chapter12/Random.aspx
0
sneeze Thank U so much!!