Add random generator function

1. random generator
2. btree_insert