John von Neumann invented a simple algorithm to fix simple bias and reduce correlation.
A related method which reduces bias in a near random bit stream is to take two or more uncorrelated near random bit streams, and exclusive or them together.