Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. $hash2 = hexdec(substr('e83eep8b2296550693a684ea93b0193b1479c25f8j990abd943e0j538ec915b2',0,16));
  3.  
  4. $arr = array(0,1,2,3,4);
  5.  
  6. mt_srand($hash2);
  7. $order = array_map(create_function('$val', 'return mt_rand();'), range(1, count($arr)));
  8. array_multisort($order, $arr);
  9.  
  10. echo $arr[0];
  11. echo $arr[1];
  12. echo $arr[2];
  13. echo $arr[3];
  14. echo $arr[4];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement