Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-01

Random

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Moreno Villena

I would like to know the formulae used by the random number generator of Free Pascal; i.e., the value of multiplier and the adding term.

J.A.Moreno

Florian Klaempfl
to Moreno Villena
you wrote
I would like to know the formulae used by the random number generator of Free Pascal; i.e., the value of multiplier and the adding term.

Have a look at the rtl sources... rtl/inc/system.inc

J.A.Moreno
Lee, John

In case you are intersted in random nos, attached is an improved rand no generator + test program for fpc, based on the mersenne twister... see the references. We are considering using this as a better? or alternate rand no generator in fpc...but at present the one in the source is a more convention algorithm.
Regards John

Earlier message 14 lines
-----Original Message----- From: Moreno Villena Sent: Wednesday, January 02, 2002 22:04 To: Subject: [fpc-pascal]Random I would like to know the formulae used by the random number generator of Free Pascal; i.e., the value of multiplier and the adding term. J.A.Moreno This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.