cliff_rand.awk 307 B

1234567891011121314
  1. # cliff_rand.awk --- generate Cliff random numbers
  2. #
  3. # Arnold Robbins, arnold@skeeve.com, Public Domain
  4. # December 2000
  5. BEGIN { _cliff_seed = 0.1 }
  6. function cliff_rand()
  7. {
  8. _cliff_seed = (100 * log(_cliff_seed)) % 1
  9. if (_cliff_seed < 0)
  10. _cliff_seed = - _cliff_seed
  11. return _cliff_seed
  12. }