MySQL Forums
Forum List  »  Newbie

command rand ()
Posted by: Noeh Varga
Date: March 17, 2015 08:37AM

Hello,
I am new to mysql and new to to databases in general.
So far I could get along with scripts that I have. Now there is the first command
that I do not understand, the rand() command:
Can anybody tell me what exactly this line does?

VALUES (round(rand() * 1000) +1);

Thank you for Your help.

Options: ReplyQuote


Subject
Written By
Posted
command rand ()
March 17, 2015 08:37AM
March 18, 2015 09:01AM
March 18, 2015 06:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.