* (all files)
* stripped svn header
* minor cleanups
; use following command to find out the history of files:
git log
git log --follow
git blame
git annotate
31 lines
664 B
Plaintext
31 lines
664 B
Plaintext
/*
|
|
* Author....: Gary Baren
|
|
* CIS ID....: 75470,1027
|
|
*
|
|
* This is an original work by Gary Baren and is hereby placed in the
|
|
* public domain.
|
|
*
|
|
* Modification history:
|
|
* ---------------------
|
|
*
|
|
* Rev 1.2 15 Aug 1991 23:04:30 GLENN
|
|
* Forest Belt proofread/edited/cleaned up doc
|
|
*
|
|
* Rev 1.1 14 Jun 1991 19:52:46 GLENN
|
|
* Minor edit to file header
|
|
*
|
|
* Rev 1.0 07 Jun 1991 23:03:38 GLENN
|
|
* Initial revision.
|
|
*
|
|
*/
|
|
|
|
FUNCTION ft_Rand1( nMax )
|
|
|
|
THREAD STATIC t_nSeed
|
|
|
|
LOCAL m := 100000000, b := 31415621
|
|
|
|
t_nSeed := iif( t_nSeed == NIL, Seconds(), t_nSeed )
|
|
|
|
RETURN nMax * ( ( t_nSeed := Mod( t_nSeed * b + 1, m ) ) / m )
|