HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Random/cdesc-Random.ri
U:RDoc::NormalClass[iI"Random:ET@I"	base;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[	I"ORandom provides an interface to Ruby's pseudo-random number generator, or ;TI"QPRNG.  The PRNG produces a deterministic sequence of bits which approximate ;TI"Ntrue randomness. The sequence may be represented by integers, floats, or ;TI"binary strings.;To:RDoc::Markup::BlankLineo;	;[I"HThe generator may be initialized with either a system-generated or ;TI"4user-supplied seed value by using Random.srand.;T@o;	;[I"QThe class method Random.rand provides the base functionality of Kernel.rand ;TI"Ialong with better handling of floating point values. These are both ;TI"(interfaces to the Ruby system PRNG.;T@o;	;[	I"LRandom.new will create a new PRNG with a state independent of the Ruby ;TI"Msystem PRNG, allowing multiple generators with different seed values or ;TI"Gsequence positions to exist simultaneously. Random objects can be ;TI";marshaled, allowing sequences to be saved and resumed.;T@o;	;[I"RPRNGs are currently implemented as a modified Mersenne Twister with a period ;TI"Rof 2**19937-1.  As this algorithm is _not_ for cryptographical use, you must ;TI"Ause SecureRandom for security purpose, instead of this PRNG.;T:
@fileI"
random.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[U:RDoc::Constant[iI"DEFAULT;TI"Random::DEFAULT;T:public0o;;[;@(;0@(@cRDoc::NormalClass0[[[I"
class;T[[;[[I"
bytes;TI"
random.c;T[I"new;T@;[I"
new_seed;T@;[I"	rand;T@;[I"	seed;T@;[I"
srand;T@;[I"urandom;T@;[:protected[[:private[[I"
instance;T[[;[	[I"==;T@;[I"
bytes;T@;[I"	rand;T@;[I"	seed;T@;[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[I"lib/securerandom.rb;T@(@(cRDoc::TopLevel