completed random number assignment