[Main]
Name=random
Type=Function
Subtype=Macro
Header Files=stdlib.h
Definition=short random (short num);
Real Definition=#define random(x) ((short)((long)(unsigned short)rand()*(unsigned short)(x)/32768))
See Also=stdlib.h/rand, stdlib.h/srand, stdlib.h/randomize

[Description]
Generates a random integer in a given range.

[Explanation]
random is a macro which uses <A HREF="$$LINK(stdlib.h/rand)">rand</A> to return a random number
between 0 and (<I>num</I>-1).

[References]
Out=stdlib.h/rand
