Last change
on this file since 1076 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
307 bytes
|
Line | |
---|
1 | # cliff_rand.awk --- generate Cliff random numbers
|
---|
2 | #
|
---|
3 | # Arnold Robbins, arnold@skeeve.com, Public Domain
|
---|
4 | # December 2000
|
---|
5 |
|
---|
6 | BEGIN { _cliff_seed = 0.1 }
|
---|
7 |
|
---|
8 | function 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.