For example:
Code: Select all
chance(50%) {
// code here
}If not, I have an alternative using a database, but this would save me a lot of trouble.
Thanks!
Moderator: General Moderators
Code: Select all
chance(50%) {
// code here
}Code: Select all
$percentage = mt_rand() / mt_getrandmax();