View difference between Paste ID: 45kXNtgB and 9zc377PV
SHOW: | | - or go back to the newest paste.
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);