Change to if(rng(1,100) > lets_spawn) and we're good to go.