Replaced call to C function RAND() with call to internal R function UNIF_RAND(). Reference: Section 6.3 ("Random number generation") in the documentation for Writing R Extensions.
http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Random-numbers

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/gnmf@7 edb9625f-4e0d-4859-8d74-9fd3b1da38cb