uniform distribution, some tutorial on law of large numbers ported