add simulation program

1. add simulation program
2.add random function
3.add some script about xiadan
4.fix some bugs