Guest User

Untitled

a guest
Oct 24th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. <?php
  2.  
  3. $chance = '1/100';
  4.  
  5. list($c1, $c2) = explode('/', $chance);
  6.        
  7. if (rand($c1, $c2) == '100')
  8. {
  9.    echo 'I will give you free PSD';
  10. }
Add Comment
Please, Sign In to add comment