nb109

chance()

Dec 22nd, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// @description Chance(percent)
  2. /// @param percent
  3.  
  4. /* Creator (and original version at): https://pastebin.com/u/ShaunJS */
  5.  
  6. // Returns true or false depending on RNG
  7. // ex:
  8. //      Chance(0.7);    -> Returns true 70% of the time
  9.  
  10. return argument0 > random(1);
Add Comment
Please, Sign In to add comment