Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
SecureRandom
/
//opt/alt/ruby21/share/ri/2.1.0/system/SecureRandom/random_number-c.ri
U:RDoc::AnyMethod[iI"random_number:EFI" SecureRandom::random_number;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I":SecureRandom.random_number generates a random number.;To:RDoc::Markup::BlankLine o; ; [I",If a positive integer is given as _n_, ;TI"4SecureRandom.random_number returns an integer: ;TI",0 <= SecureRandom.random_number(n) < n.;T@o:RDoc::Markup::Verbatim; [I".p SecureRandom.random_number(100) #=> 15 ;TI".p SecureRandom.random_number(100) #=> 88 ;T:@format0o; ; [I"0If 0 is given or an argument is not given, ;TI"1SecureRandom.random_number returns a float: ;TI"/0.0 <= SecureRandom.random_number() < 1.0.;T@o;; [I"8p SecureRandom.random_number #=> 0.596506046187744 ;TI"7p SecureRandom.random_number #=> 0.350621695741409;T; 0: @fileI"lib/securerandom.rb;T:0@omit_headings_from_table_of_contents_below000[ I" (n=0);T@!FI"SecureRandom;FcRDoc::NormalModule00