[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=rand, srand, randomize

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

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

[References]
Out=rand
