Replaced rRandom with a more reliable version. See README for Credits.