generate 4-digit random code