Add random function in demo

1. for graph
2. for digraph
3. for btree