add Random and RandomTest class