Random generation for trees is functional

Random generation works and union is functional :)