joowani / binarytree

Python Library for Studying Binary Trees
http://binarytree.readthedocs.io
MIT License
1.81k stars 171 forks source link

Set seed for controlling randomness #47

Open hlfernandez opened 8 months ago

hlfernandez commented 8 months ago

It would be nice to have a way to set the seed (or random state) for creating random trees. For instance, something like bst(4, random_state=42) would return always the same random tree.

Thanks!