Skip to content
Advertisement

Percentage chance to make action

Simple problem:

JavaScript

How can I write some_function, or an expression involving percentage_chance, in order to solve this problem?

Advertisement

Answer

You could use random.random:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement