skip to main
|
skip to sidebar
WTF?
Saturday, May 1, 2010
MySQL random integer in the range
To obtain a random integer R in the range i <= R < j, use the expression FLOOR(i + RAND() * (j – i)).
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2012
(1)
►
May
(1)
▼
2010
(10)
►
August
(1)
▼
May
(6)
Sending PHP otput to a file
Selecting random record from MySQL database table
Copying selected record from one MySQL table to an...
print_r() output to a file
Converting a date from MySQL to human readable format
MySQL random integer in the range
►
March
(3)
About Me
Aliaxey Kharytanovich
View my complete profile
No comments:
Post a Comment