untested randomblock class