[Gambas-user] Random Numbers Functions info

Charles Bukowski charlesbukowski.italy at gmail.com
Sun May 8 07:08:54 CEST 2022


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?
>
>
> Jussi
>
>
> 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 ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220508/1511e024/attachment.htm>


More information about the User mailing list