I am making a Rock Paper Scissors prgram and I was wondering if anyone could help me create a Random Number generator in VB.NET?
Printable View
I am making a Rock Paper Scissors prgram and I was wondering if anyone could help me create a Random Number generator in VB.NET?
There is the Random class already. If that's not random enough there is an RNG in the CodeBank. Also, there has been some lively discussion on various threads about the relative merits and randomness of the various methods available, so a forum search should turn up more information, including another RNG in the Cryptography namespace, although I don't quite remember the class name off-hand.
The Random Class is more than sufficient for this type of game. There will be no problem with duplicate data either as long as you only use 1 instance of it.
Nobody needs a cryptographically strong RPS player :D
Hey, you can never have too much overkill. :)
:) code it in assembly :DQuote:
Originally Posted by jmcilhinney