MSFT and random numbers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Howard Kaikow

    MSFT and random numbers

    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.


  • Herfried K. Wagner [MVP]

    #2
    Re: MSFT and random numbers

    Howard,

    * "Howard Kaikow" <kaikow@standar ds.com> scripsit:[color=blue]
    > 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.[/color]

    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/mssharsourcecli 2.asp>

    --
    Herfried K. Wagner [MVP]
    <http://www.mvps.org/dotnet>

    Comment

    • Mattias Sjögren

      #3
      Re: MSFT and random numbers

      Howard,
      [color=blue]
      >3. Random class in .NET.[/color]



      [color=blue]
      >2. Randomize and Rnd in VB .NET[/color]

      Not that I know, but you may be able to disassemble the VB library and
      figure it out that way.

      [color=blue]
      >1. Randomize and Rnd in VB 6.[/color]

      The VB.NET version is compatible with the VB6 version IIRC, so if you
      get #2 you have this one as well.



      Mattias

      --
      Mattias Sjögren [MVP] mattias @ mvps.org
      http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      Please reply only to the newsgroup.

      Comment

      • Scott M.

        #4
        Re: MSFT and random numbers

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


        "Howard Kaikow" <kaikow@standar ds.com> wrote in message
        news:eFyaeOA%23 DHA.1936@TK2MSF TNGP12.phx.gbl. ..[color=blue]
        > 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.
        >
        >[/color]


        Comment

        • Howard Kaikow

          #5
          Re: MSFT and random numbers

          Thanx, downloading as we speak.

          --
          http://www.standards.com/; See Howard Kaikow's web site.
          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          news:%230da7bA% 23DHA.3220@TK2M SFTNGP10.phx.gb l...[color=blue]
          > Howard,
          >
          > * "Howard Kaikow" <kaikow@standar ds.com> scripsit:[color=green]
          > > 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.[/color]
          >
          > 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/>
          >[/color]
          <http://msdn.microsoft. com/library/en-us/dndotnet/html/mssharsourcecli .asp>[color=blue]
          >[/color]
          <http://msdn.microsoft. com/library/en-us/dndotnet/html/mssharsourcecli 2.asp>[color=blue]
          >
          > --
          > Herfried K. Wagner [MVP]
          > <http://www.mvps.org/dotnet>[/color]


          Comment

          • Howard Kaikow

            #6
            Re: MSFT and random numbers

            THanx.

            A number of folkes have raised questions about the quality of some of the
            algorithms in Numerical Recipes in C, hope the random number algorithm is
            not one of those.

            There may be a paper on this at http://math.jpl.nasa.gov/nr/, but I cannot
            seem to get to http://math.jpl.nasa.gov/ today.

            --
            http://www.standards.com/; See Howard Kaikow's web site.
            "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
            news:%23jUbFeA% 23DHA.2316@TK2M SFTNGP11.phx.gb l...[color=blue]
            > Howard,
            >[color=green]
            > >3. Random class in .NET.[/color]
            >
            >[/color]
            http://sharedsourcecli.sscli.net/sou...stem/random.cs[color=blue]
            >
            >[color=green]
            > >2. Randomize and Rnd in VB .NET[/color]
            >
            > Not that I know, but you may be able to disassemble the VB library and
            > figure it out that way.
            >
            >[color=green]
            > >1. Randomize and Rnd in VB 6.[/color]
            >
            > The VB.NET version is compatible with the VB6 version IIRC, so if you
            > get #2 you have this one as well.
            >
            >
            >
            > Mattias
            >
            > --
            > Mattias Sjögren [MVP] mattias @ mvps.org
            > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
            > Please reply only to the newsgroup.[/color]


            Comment

            • Jay B. Harlow [MVP - Outlook]

              #7
              Re: MSFT and random numbers

              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


              "Howard Kaikow" <kaikow@standar ds.com> wrote in message
              news:eFyaeOA%23 DHA.1936@TK2MSF TNGP12.phx.gbl. ..[color=blue]
              > 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.
              >
              >[/color]


              Comment

              • Howard Kaikow

                #8
                Re: MSFT and random numbers

                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 [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> wrote in message
                news:%23GRTJEu% 23DHA.3120@TK2M SFTNGP11.phx.gb l...[color=blue]
                > 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[/color]
                mistaken...[color=blue]
                >
                > Hope this helps
                > Jay
                >
                >
                > "Howard Kaikow" <kaikow@standar ds.com> wrote in message
                > news:eFyaeOA%23 DHA.1936@TK2MSF TNGP12.phx.gbl. ..[color=green]
                > > 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.
                > >
                > >[/color]
                >
                >[/color]


                Comment

                Working...