fix rand
Merge pull request #1 from cklisch/myBranch

fix rand