Simple implementation of Benford's Law