This template is a bit outdated, but it does contain some prebuilt logic that will help you understand how things work. It hasn't been adapted for english, so all the resources are jumbled together, and they're generally poorly named. I don't have time to look for a new template right now
Do action if percentage = correct
-
I'm looking to do action about 5% of the times and I've been using random number generator and then match 1 number of all numbers, and if it matches that number do the action but it feels like it matches it too many times to be correct.
Is there any way to use proper percentage in BAS?
-
@rekaa0251 said in Do action if percentage = correct:
I'm looking to do action about 5% of the times and I've been using random number generator and then match 1 number of all numbers, and if it matches that number do the action but it feels like it matches it too many times to be correct.
Is there any way to use proper percentage in BAS?
Set the action "Random Number" from 0 to 100

And write the condition [[RANDOM_NUMBER]] > 95. The chance of triggering the condition will be 5%.

test script