|
-
Oct 29th, 2024, 05:46 PM
#1
Thread Starter
Junior Member
VB.net VS2022 => How to generate random number that is a Single or Double
Trying to generate a Single or Double random number between 0 and 1 inclusive of 0 and 1.
I can use rnd() method & it works but everyone on the various VB fora claim this is a bad way to do it (old & pseudorandom length too short)
I have tried "RandomNumberGenerator.GetInt32" and apparently this is a better method but seems to only generate integer values. I need Single/Double capability.
I do not need Crypto (just doing science Monte Carlo calculation) but would love a really long sequence before repeats.
Thanks for any help guys!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|