Use standard C function rand
Merge pull request #13 from jibsen/master

Use standard C function rand