Reworked class Random.