fixed random sequence generator
Merge pull request #1 from cboursnell/master

Fixed random sequence generator