Random coding assignments