MSFT and random numbers

  • Thread starter Thread starter Howard Kaikow
  • Start date Start date
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.
 
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>
 
FYI - Randomize() and Rnd() are the same in VB 6.0 and VB.NET. In VB.NET
they are legacy functions.
 
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
 
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
 
Back
Top