fork download
  1. <?php
  2.  
  3. $rand = '';
  4. for ( $i=0; $i < 6; $i++ ) {
  5. $rand .= mt_rand(0, 9);
  6. }
  7. /*echo $rand.'<br />';*/
  8.  
  9. $lastNumber = $rand % 10;
  10.  
  11. /*echo $lastNumber.'<br />';*/
  12. $destiny = 'U r.. ';
  13. echo "U've just roll for ur destiny<hr/>";
  14. switch ($lastNumber) {
  15. case (0) :
  16. $destiny .=' - warrior jewdi';break;
  17. case (1) :
  18. $destiny .=' - marauder sith';break;
  19. case (2) :
  20. $destiny .=' - concular jewdi';break;
  21. case (3) :
  22. $destiny .=' - forth whore sith';break;
  23. case (4) :
  24. $destiny .=' - stormtroper';break;
  25. case (5) :
  26. $destiny .=' - wookie';break;
  27. case (6) :
  28. $destiny .=' - mandolorian';break;
  29. case (7) :
  30. $destiny .=' - bounty hunter';break;
  31. case (8) :
  32. $destiny .=' - rebel soldier';break;
  33. case (9) :
  34. $destiny .=' - clown trooper';break;
  35. default :
  36. $destiny .=' - NODOBY, boy. By teh Forth will something went wrong!';
  37. }
  38. echo $destiny;
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
U've just roll for ur destiny<hr/>U r..  - marauder sith