lib/knuth.rb
def random
    @random_number += 1
    if @random_number > 54
      @random_number = 0
      advance_random
    end
    @random_number_array[@random_number]
  end
# random - returns a single pesudorandom real valve between 0.0 and 1.0
# Fetch a single random number between 0.0 and 1.0 - Subtractive Method
# See Knuth, D. (1969), v. 2 for details
returns a single pesudorandom real valve between 0.0 and 1.0
Fetch a single random number between 0.0 and 1.0 - Subtractive Method
See Knuth, D.
returns a single pesudorandom real valve between 0 . 0 and 1 . 0 Fetch a single random number between 0 . 0 and 1 . 0 - Subtractive Method See Knuth D .
def random
    @random_number += 1
    if @random_number > 54
      @random_number = 0
      advance_random
    end
    @random_number_array[@random_number]
  end
def random @random_number += 1 if @random_number > 54 @random_number = 0 advance_random end @random_number_array [ @random_number ] end
random - returns a single pesudorandom real valve between 0.0 and 1.0
Fetch a single random number between 0.0 and 1.0 - Subtractive Method
See Knuth, D. (1969), v. 2 for details
random - returns a single pesudorandom real valve between 0 . 0 and 1 . 0 Fetch a single random number between 0 . 0 and 1 . 0 - Subtractive Method See Knuth D . ( 1969 ) v . 2 for details