Random numbers suddenly not working