Please attach a test project that replicates this problem. Also, specify what is in the resource? You can attach the project and the file for the resource here or in a forum PM.
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