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/Kernel/srand-i.ri
U:RDoc::AnyMethod[iI"
srand:ETI"Kernel#srand;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"ESeeds the system pseudo-random number generator, with +number+. ;TI")The previous seed value is returned.;To:RDoc::Markup::BlankLineo;
;	[	I"KIf +number+ is omitted, seeds the generator using a source of entropy ;TI"Rprovided by the operating system, if available (/dev/urandom on Unix systems ;TI"Por the RSA cryptographic provider on Windows), which is then combined with ;TI"5the time, the process id, and a sequence number.;T@o;
;	[I"Osrand may be used to ensure repeatable sequences of pseudo-random numbers ;TI"Rbetween different runs of the program. By setting the seed to a known value, ;TI"7programs can be made deterministic during testing.;T@o:RDoc::Markup::Verbatim;	[
I"Ksrand 1234               # => 268519324636777531569100071560086917274
;TI"L[ rand, rand ]           # => [0.1915194503788923, 0.6221087710398319]
;TI",[ rand(10), rand(1000) ] # => [4, 664]
;TI"(srand 1234               # => 1234
;TI"K[ rand, rand ]           # => [0.1915194503788923, 0.6221087710398319];T:@format0:
@fileI"
random.c;T:0@omit_headings_from_table_of_contents_below0I"1srand(number = Random.new_seed) -> old_seed
;T0[I"(*args);T@"FI"Kernel;TcRDoc::NormalModule00