Advertisement
kyroskoh

Twitch CustomAPI - RandomChoice

May 7th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2. $RandomChoicesArray=explode(",",$_GET["GeneralQuery"]);
  3. $RandomChoice = $RandomChoicesArray[mt_rand(0, count($RandomChoicesArray) - 1)];
  4. echo $RandomChoice;
  5. ?>
  6.  
  7.  
  8. Example: Decide.php?GeneralQuery=ace, die, clutch, team kill
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement