Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

lib_math.h/lib_math.c

Prototype

Code Block
languagecpp
          RAND_NBR  Math_Rand (void);


Arguments

None.

Returned Value

...

Math_Rand() is re-entrant since it calculates the next random number in critical sections.

Example Usage

Code Block
languagecpp

          RAND_NBR  rand_nbr;


          rand_nbr = Math_Rand();