reajusting RandomCodes