Edited random code generator