source: Daodan/MinGW/msys/1.0/share/awk/cliff_rand.awk@ 1063

Last change on this file since 1063 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 307 bytes
RevLine 
[1046]1# cliff_rand.awk --- generate Cliff random numbers
2#
3# Arnold Robbins, arnold@skeeve.com, Public Domain
4# December 2000
5
6BEGIN { _cliff_seed = 0.1 }
7
8function cliff_rand()
9{
10 _cliff_seed = (100 * log(_cliff_seed)) % 1
11 if (_cliff_seed < 0)
12 _cliff_seed = - _cliff_seed
13 return _cliff_seed
14}
Note: See TracBrowser for help on using the repository browser.