Simple out of bounds fix

Throws a Index of of bounds if the random number chosen is exactly the length of $safe, so to -1 ensures generating a random number from 0 to len-1.