1. A device comprising: a generator receiving at an extrinsic input data relating to a transmission channel and applying a process to the extrinsic input to generate a first output, the first output generated in dependence upon at least a probability calculation and a relaxation factor; a summation node connected to the generator to receive the output, receive a factor relating to the transmission channel, and generate a summation result; a uniform random number generator to generate a second output, the second output generated in dependence upon at least a probability calculation; and a comparator generating a code in dependence upon the summation result and the second output.