Tweak tree level generation
This commit is contained in:
@@ -47,7 +47,7 @@ Randomly generate a small tree.
|
||||
aTreeStrut :: RandomGen g => State g (Tree ())
|
||||
aTreeStrut = do
|
||||
d <- state $ randomR (9,11:: Int)
|
||||
nbs <- state $ randomR (2,5)
|
||||
nbs <- state $ randomR (2,4)
|
||||
bds <- takeN nbs [1 .. d - 1]
|
||||
bs <- replicateM nbs smallBranch
|
||||
let trunk = treePath d
|
||||
|
||||
Reference in New Issue
Block a user