fixed up Random class according to specification