Random number generation examples in c most often include the C ANSI rand() and srand() functions. Some people use more sophisticated solutions (see this thread for instance) but those demand external libraries or much complex code. Therefore I do not understand where the random() function used in the SDK’s urner example come from. I can’t see it neither in ext.h nor in ext_obex.h. Is it Darwin-specific stuff ? Why isn’t there any inclusion of a specific header file to use it ?
Thank you in advance.
In between I have used the ANSI rand function.
It’s strange that there’s no #include
Thanks again Nicolas !
C74 RSS Feed | © Copyright Cycling '74