search for: putrnget

Displaying 1 result from an estimated 1 matches for "putrnget".

Did you mean: put_net
2002 Jan 24
2
random number generation issues with r and compiled C code
...s no perfect solution to the problem of generating random numbers in C/C++. So, I'm thinking of running my program inside R by compiling my code as a shared library, and using R's builtin random number facilities. I have a couple of questions about this. 1) The functions GetRNGstate() and PutRNGetate() read and write .Random.Seed. The question is what is the best strategy for calling these. Would it be best to call these routines as infrequently as possible? My remarks above (if correct) suggest that. That is, would be best to call GetRNGstate() once before generating all random numbers nece...