randを使用する。
rand(0,500);
こう書くと、0から500までのランダムの数字が取得できる。
参考は、こちら。
http://jp.php.net/manual/ja/function.rand.php
[...] ランダムの数字を取得 [...]
Name (required)
Mail (will not be published) (required)
Website
Comments