Randomtree generation improvements