Add random code to event