first attempt at a random code generator.