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...
 
I'm looking to create a truely random number for a password algorythm.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top