In Files

  • benchmark/bm_ao_render.rb

Methods

toggle debugging

Rand

Constants

BNUM
BNUMF

Public Class Methods

rand() click to toggle source
 
               # File benchmark/bm_ao_render.rb, line 21
def self.rand
  x = @@x
  t = x ^ ((x & 0xfffff) << 11)
  w = @@w
  @@x, @@y, @@z = @@y, @@z, w
  w = @@w = (w ^ (w >> 19) ^ (t ^ (t >> 8)))
  (w % BNUM) / BNUMF
end