[MAN]mt_rand[/MAN]
[MAN]mt_srand[/MAN]
You don't really have to use srand, though, as it's done automatically. mt_rand_max() will tell you the highest value it can return.
Might be an idea to download the manual and browse the function reference, it's essential.