Add while loop to allow multiple randomizations