Can random(5) output the number 5?

Internally, processing is already using the java.util.random:

1 Like