Re: [R] random numbers in C

2009-11-13 Thread Thomas Unternaehrer
Ups... I've overlooked that part. Thanks a lot for the fast response! On Fri, Nov 13, 2009 at 6:05 PM, Duncan Murdoch murd...@stats.uwo.cawrote: On 11/13/2009 11:41 AM, Thomas Unternaehrer wrote: I need some random numbers in my C program. Here a small example:

Re: [R] random numbers in C

2009-11-13 Thread Duncan Murdoch
On 11/13/2009 11:41 AM, Thomas Unternaehrer wrote: I need some random numbers in my C program. Here a small example: #include R.h void rand (int* n) { int len = *n; for (int i = 0; i len; i++)