Reintroduce librandom dependency on Rmath
Merge pull request #2181 from staticfloat/rmathfix

Reintroduce librandom dependency on Rmath