Module: Kernel

Defined in:
lib/feldtruby/math/rand.rb

Constant Summary collapse

RC =
FeldtRuby::RCommunicator.new

Instance Method Summary collapse

Instance Method Details

#rand_int(top) ⇒ Object



2
3
4
# File 'lib/feldtruby/math/rand.rb', line 2

def rand_int(top)
	(top * rand()).floor
end