added custom Random class (used mostly at least)