yay, it works. changed the way random numbers are being used.