w10schools
Login
Register
In current category
Only my posts
Home
Tutorials
HTML, CSS
HTML, HTML5
CSS, CSS3
XML
JavaScript, AJAX
PHP
Ruby on Rails
Ruby
Rails
ASP.NET
ASP
C# .NET
Java
JSP
Databases
MySQL
MSSQL Server
Oracle
Web Server
Windows
Linux
Apache
IIS
Design
Dreamweaver
Flash
Photoshop
Fireworks
CorelDRAW
Illustrator
References
HTML
Bootstrap
CSS
CSS Selectors
Sass
JavaScript
Mobile Apps
Cordova
Ruby on Rails
Ruby
Rails
PHP
Function
Language
CodeIgniter
Phalcon
PHPUnit
Symfony
Drupal
Yii
Laravel
Perl
Perl
Python
Python
Django
NumPy
Pandas
scikit-image
scikit-learn
Statsmodels
Matplotlib
Lua
Lua
C, C++
C
C++
Server
Docker
Apache HTTP Server
Nginx
Database
PostgreSQL
Big Data
TensorFlow
Game Development
Phaser
LÖVE
Articles
News
General
Website Promotion
Online Advertising
Make Money Online
Editorials
Interviews
Web Roundups
Resources
Design
Fonts
Graphics
Vectors
Templates
UI (User Interface)
Brushes
Patterns, Backgrounds
Textures
Web Development
HTML, CSS
XML
JavaScript, AJAX
Ruby on Rails
PHP
Java
.NET
Python
Perl
Flash
Mobile Application Development
Mobile Development Tools
Swift
Online Services
Online Storage
Web Hosting
Tools
Generators
Edit
Toggle Dropdown
In Place Editing
Advanced Editing
References
Ruby on Rails
Ruby
Classes
Random
Language
Default
Markdown
rand
Random.rand â float
Random.rand(max) â number
Class Public methods
Alias of Random::DEFAULT.rand.
doc_ruby_on_rails
2015-05-01 00:17:46
Comments
Leave a Comment
Please
login
to continue.
Popular Articles
rand
rand(max=0) â number Instance Public methods If called without an argument, or if max.to_i.abs == 0, rand returns a pseudo-random fl
rand
rand EXPR rand Returns a random fractional number greater than or equal to 0 and less than the value of EXPR. (EXPR should be positive.) If EXPR is o
rand
(PHP 4, PHP 5, PHP 7) Generate a random integer int rand ( void ) int rand ( i
rand
Defined in header <stdlib.h> int rand(); Returns a pseudo-random integral value between 0 and RAND_MAX (0 and RAND_MAX include
std::rand
Defined in header <cstdlib> int rand(); Returns a pseudo-random integral value between 0 and RAND_MAX (0 and RAND_MAX included
Return to View
Please login to continue.