Firx RNG problem, half done.
RNG done
Merge pull request #29 from snoweye/master

RNG done