Generate random trees