Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. function roll_dices()
  2. {
  3. $one=rand(1, 6);
  4. $two=rand(1, 6);
  5. $three=rand(1, 6);
  6. $four=rand(1, 6);
  7. $five=rand(1, 6);
  8. $result="$one*$two*$three*$four*$five";
  9. $apa123=array();
  10. array_push($apa123, $one);
  11. return $apa123;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement