randomized encodings