Tutorials
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.1K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.3K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
Ruby Random-class
13 posts
Recent Articles
Popular Articles
Ruby | Random srand() function
Last Updated: 17 December 2019
Random#srand() : srand() is a Random class method which returns system pseudo-random number.Syntax: Random.srand()Parameter: Random valuesReturn: system pseudo-random numb...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random ==() function
Last Updated: 17 December 2019
Random#==() is a Random class method which checks whether the two random values are equal.Syntax: Random.==()Parameter: Random valuesReturn: true - if random values are eq...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random bytes() function
Last Updated: 17 December 2019
Random#bytes() is a Random class method which returns random binary string containing size bytes.Syntax: Random.bytes()Parameter: Random valuesReturn: random binary string...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random seed() function
Last Updated: 17 December 2019
Random#seed() : seed() is a Random class method which returns seed value used to initialize the generatorSyntax: Random.seed()Parameter: Random valuesReturn: seed value us...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random hex() function
Last Updated: 17 December 2019
Random#hex() : hex() is a Random class method which checks returns a random hexadecimal string.Syntax: Random.hex()Parameter: Random valuesReturn: a random hexadecimal str...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random base64() function
Last Updated: 17 December 2019
Random#base64() : base64() is a Random class method which returns a random base64 string.Syntax: Random.base64()Parameter: Random valuesReturn: a random base64 string.Exam...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random random_bytes() function
Last Updated: 17 December 2019
Random#random_bytes() : random_bytes() is a Random class method which returns a random random_binary string.Syntax: Random.random_bytes()Parameter: Random valuesReturn: a ...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random uuid() function
Last Updated: 17 December 2019
Random#uuid() : uuid() is a Random class method which checks returns a random v4 UUID (Universally Unique IDentifier).Syntax: Random.uuid()Parameter: Random valuesReturn: ...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random random_number() function
Last Updated: 17 December 2019
Random#random_number() : random_number() is a Random class method which checks returns a random number from raw random bytesSyntax: Random.random_number()Parameter: Random...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random urlsafe_base64() function
Last Updated: 17 December 2019
Random#urlsafe_base64() : urlsafe_base64() is a Random class method which returns a random URL-safe base64 string.Syntax: Random.urlsafe_base64()Parameter: Random valuesRe...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random new_seed() function
Last Updated: 17 December 2019
Random#new_seed() : new_seed() is a Random class method which returns a random seed value.Syntax: Random.new_seed()Parameter: Random valuesReturn: a random seed valueExamp...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random new() function
Last Updated: 17 December 2019
Random#new() : new() is a Random class method which creates a new PRNG using seed to set the initial state.Syntax: Random.new()Parameter: Random valuesReturn: a new PRNG u...
read more
Ruby
Ruby-Methods
Ruby Random-class
Ruby | Random rand() function
Last Updated: 17 December 2019
Random#rand() : rand() is a Random class method which generates a random value.Syntax: Random.rand()Parameter: Random valuesReturn: generates a random value.Example #1 :Ru...
read more
Ruby
Ruby-Methods
Ruby Random-class
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !