rand: If called without an argument, or if max.to_i.abs == 0, rand returns a pseudo-random floating point number between 0.0 and 1.0, including 0.0 and excluding 1.0.
srand: Seeds the system pseudo-random number generator, Random::DEFAULT, with number.
warn: If warnings have been disabled (for example with the -W0 flag), does nothing.
Loading Code
autoload: Registers filename to be loaded (using Kernel::require) the first time that module (which may be a String or a symbol) is accessed.
autoload?: Returns filename to be loaded if name is registered as autoload.
load: Loads and executes the Ruby program in the file filename.
require: Loads the given name, returning true if successful and false if the feature is already loaded.
require_relative: Ruby tries to load the library named string relative to the requiring file’s path.
gem(defined by RubyGems): Use #gem to activate a specific version of gem_name.
sleep: Suspends the current thread for duration seconds (which may be any number, including a Float with fractional seconds).
IO and Strings
gets: Returns (and assigns to $_) the next line from the list of files in ARGV (or $*), or from standard input if no files are present on the command line.
format: Returns the string resulting from applying format_string to any additional arguments.
p: For each object, directly writes obj.inspect followed by a newline to the program’s standard output.