Random Number between 0-86

  • Thread starter Thread starter pmclinn
  • Start date Start date
P

pmclinn

Is there a way to use the
System.Security.Cryptography.RNGCryptoServiceProvider to create a
number that is between 0 and 86?

-Peter
 
What is the goal ? My first though would be System.Random not knowing what
you are looking for...
 
Then you could just use "modulus" so that the value is back in the needed
range (for each byte + perhaps adding a constant). If you do this for each
byte you'll have a random suite of printable chars.
 
Back
Top