Urgent: Random number in UDF
Can anyone tell me which function to use to generate uniform random numbers in (0~1) or Gaussian random numbers in Fluent UDF?
Re: Urgent: Random number in UDF
Hi, Your UDF is programmed in C, so that I think you can only use C language to generate random numbers.
The function rand() is defined in sdtlib.h.
Have a look to the following links:
|All times are GMT -4. The time now is 21:22.|