Random codes scripts