Changing random number creation