[Gambas-user] Random Numbers Functions info
jussi.lahtinen at gmail.com
Sun May 8 23:31:35 CEST 2022
I haven't read the paper, which the number generator is based on, but if I
would need rng for something serious, I would use something already well
established in the literature (or for crypto things, something Gambas
already offer for the purpose). I guess Benoit has run tests already with
ent or similar. I don't know, but the rng seems to be fine. However I would
prefer C for Monte Carlo methods anyway.
On Sun, May 8, 2022 at 8:10 AM Charles Bukowski <
charlesbukowski.italy at gmail.com> wrote:
> Not for any particular reason. I am asking just to understand if
> randomness level of numbers generated by standard gambas functions is the
> same/comparable with the analogue rnd functions of more popular programming
> languages (e.g. c, c++,python,java).
> Il giorno sab 7 mag 2022 alle ore 22:40 Jussi Lahtinen <
> jussi.lahtinen at gmail.com> ha scritto:
>> Benoit has left this note in the sources:
>> "This is a twisted generalized feedback shift register
>> that generates pseudo-random numbers.
>> Source code from the paper of Yann Guidon
>> in March edition of GNU/Linux Magazine France"
>> I guess it is initialized with /dev/random.
>> Why do you ask?
>> On Sat, May 7, 2022 at 10:02 PM Charles Bukowski <
>> charlesbukowski.italy at gmail.com> wrote:
>>> Hello, just as information, I have a question regarding how random
>>> numbers are generated by language functions.
>>> Is Mersenne Twister algorithm the pnrg? Or is it the same used in java?
>>> Many thx
>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User