Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $rand = mt_rand(1, 4);
- if ($rand == 1){
- //乱数が1の時の処理
- } else if ($rand == 2){
- //乱数が2の時の処理
- } else {
- //乱数が1と2以外の時の処理
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement