NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
unsigned long rand ( )

Generate random number.

Returns a pseudo-random integral number in the range 0 to RAND_MAX.

This number is generated by an algorithm that returns a sequence of apparently non-related numbers each time it is called.

An integer value between 0 and RAND_MAX (inclusive).
ex_ArrayMean.nxc, ex_ArrayMin.nxc, ex_ArrayOp.nxc, ex_ArraySort.nxc, ex_ArrayStd.nxc, ex_ArraySum.nxc, ex_ArraySumSqr.nxc, and ex_rand.nxc.