add_rakelib

add_rakelib(*files) Class Public methods Add files to the rakelib list

application

application() Class Public methods Current Rake Application

application=

application=(app) Class Public methods Set the current Rake application object.

load_rakefile

load_rakefile(path) Class Public methods Load a rakefile.

original_dir

original_dir() Class Public methods Return the original directory where the Rake application was started.

new

Random.new(seed = Random.new_seed) â prng Class Public methods Creates a new PRNG using seed to set the initial state. If seed is omitted, the generator is initialized with ::new_seed. See ::srand for more information on the use of seed values.

new_seed

Random.new_seed â integer Class Public methods Returns an arbitrary seed value. This is used by ::new when no seed value is specified as an argument. Random.new_seed #=> 115032730400174366788466674494640623225

rand

Random.rand â floatRandom.rand(max) â number Class Public methods Alias of Random::DEFAULT.rand.

srand

srand(number = Random.new_seed) â old_seed Class Public methods Seeds the system pseudo-random number generator, Random::DEFAULT, with number. The previous seed value is returned. If number is omitted, seeds the generator using a source of entropy provided by the operating system, if available (/dev/urandom on Unix systems or the RSA cryptographic provider on Windows), which is then combined with the time, the process id, and a sequence number. srand may be used to ensure repeata

==

prng1 == prng2 â true or false Instance Public methods Returns true if the two generators have the same internal state, otherwise false. Equivalent generators will return the same sequence of pseudo-random numbers. Two generators will generally have the same state only if they were initialized with the same seed Random.new == Random.new # => false Random.new(1234) == Random.new(1234) # => true and have the same invocation history. prng1 = Random.new(1234) prng