added integer.fromRandom
fixes to tests