MSFT and random numbers

H

Howard Kaikow

Anybody know whether MSFT has published the algorithm(s) used for the
following:

1. Randomize and Rnd in VB 6.
2. Randomize and Rnd in VB .NET
3. Random class in .NET.
 
H

Herfried K. Wagner [MVP]

Howard,

* "Howard Kaikow said:
Anybody know whether MSFT has published the algorithm(s) used for the
following:

1. Randomize and Rnd in VB 6.
2. Randomize and Rnd in VB .NET
3. Random class in .NET.

I don't think so, but maybe you will find the implementation of the
latter here:

Shared Source CLI:

<http://msdn.microsoft.com/net/sscli/>
<http://msdn.microsoft.com/library/en-us/dndotnet/html/mssharsourcecli.asp>
<http://msdn.microsoft.com/library/en-us/dndotnet/html/mssharsourcecli2.asp>
 
S

Scott M.

FYI - Randomize() and Rnd() are the same in VB 6.0 and VB.NET. In VB.NET
they are legacy functions.
 
J

Jay B. Harlow [MVP - Outlook]

Howard,
I vaguely remember something about Randomize & Rnd in MSDN Magazine or MSJ
magazine, however I don't have a specific link. Of course it may have been
VBPJ...

Of course this would have been from 3+ years ago, so I could be mistaken...

Hope this helps
Jay
 
H

Howard Kaikow

Thanx.

It is probably a hopeless quest.

Even if I were to find the algorithms for both Rnd and Random, the
mathematics of trying to determine what seeds would be need to start both
with the same value might be daunting.

--
http://www.standards.com/; See Howard Kaikow's web site.
Jay B. Harlow said:
Howard,
I vaguely remember something about Randomize & Rnd in MSDN Magazine or MSJ
magazine, however I don't have a specific link. Of course it may have been
VBPJ...

Of course this would have been from 3+ years ago, so I could be mistaken...

Hope this helps
Jay
 

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

Top