Solved

RNGCryptoServiceProvider Random Numbers

Posted on 2015-02-09
2
110 Views
Last Modified: 2015-02-15
When using the Rnd Function in VB you can get the same sequence of random numbers by calling Rnd with a negative argument (Rnd(-1)), followed by Randoize with a positive numeric value (Randomize(n)) , where n is any positive number.
How can you achieve the same when using RNGCryptoServiceProvider?
0
Comment
Question by:Chris Joyce
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
d-glitch earned 500 total points
ID: 40598688
I don't think that is possible.  Unpredictablity and unrepeatabity are the essential parts of the service.
0
 

Author Comment

by:Chris Joyce
ID: 40611035
Thats a pity it was a usefull feature.
Anyway I have found a way around this restriction, so i'll mark this as accepted.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question