Properly fix populate random script