2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 ANSI C functions rand() and srand().
8 static unsigned int a
= 1;
10 /*****************************************************************************
21 A random number generator.
27 A pseudo-random integer between 0 and RAND_MAX.
30 This function must not be used in a shared library or
31 in a threaded application.
41 ******************************************************************************/
43 return (a
= a
* 1103515245 + 12345) % RAND_MAX
;
48 /*****************************************************************************
59 Set the starting value for the random number generator rand()
62 seed - New start value
68 This function must not be used in a shared library or
69 in a threaded application.
79 ******************************************************************************/