Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql random number between 1 and 100

SELECT RAND()*(b-a)+a;
 a = smallest number 
 b = largest number 

SELECT RAND()*(25-10)+10;
 
PREVIOUS NEXT
Tagged: #mysql #random #number
ADD COMMENT
Topic
Name
4+3 =