Re: MSFT and random numbers

From: Scott M. (s-mar_at_BADSPAMsnet.net)
Date: 02/20/04


Date: Fri, 20 Feb 2004 18:16:39 -0500

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

"Howard Kaikow" <kaikow@standards.com> wrote in message
news:eFyaeOA%23DHA.1936@TK2MSFTNGP12.phx.gbl...
> 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.
>
> --
> http://www.standards.com/; See Howard Kaikow's web site.
>
>



Relevant Pages

  • MSFT and random numbers
    ... Anybody know whether MSFT has published the algorithmused for the ... Randomize and Rnd in VB .NET ... See Howard Kaikow's web site. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: randomize -- why?????
    ... Private Sub CreateRandomData() ... Dim i As Integer ... Cells.Value = Rnd ... But when I use "Randomize" once in a procedure, ...
    (comp.lang.basic.visual.misc)
  • Re: VB-6
    ... Debug.Print Rnd ... for the Randomize function. ... function **after** seeding the Randomize function took care of forcing ... the repeated sequences. ...
    (microsoft.public.vb.general.discussion)
  • Re: how to generate random string?
    ... Documentation says that Randomize seeds the Rnd function with a value from ... The Timer function returns the number of seconds since ... is why they limit the LCG to 24 bits. ... I have not figured out what the Randomize function does. ...
    (microsoft.public.scripting.vbscript)
  • Re: Text as argument to Randomize function
    ... just after calling Rnd with a negative number will produce ... repeatable sequences. ... Yes but -- what I said was that Randomize is unnecessary, ... every time just by using Rnd -x without Randomize. ...
    (microsoft.public.vb.general.discussion)