Sha256: ad59fb393a6353e8628516d6c7bc3b74945c5b70fad4a42e0a85114b0570f75b
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved. # License:: GNU General Public License (GPL). # Revision:: $Id: ruby.rb 218 2005-05-09 12:11:21Z ertai $ module RandomGenerators class Ruby < RandomGenerator concrete def choose_integer ( n ) check_choose_integer(n) Kernel.rand(n) end def choose_float ( f=1.0 ) check_choose_float(f) Kernel.rand() * f end end # class Ruby end # module RandomGenerators
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vcs-0.2.148 | ruby_ex/random_generators/ruby.rb |