5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
15 _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345;
16 return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768;
22 #include <_PDCLIB_test.h>
27 TESTCASE( ( rnd1 = rand() ) < RAND_MAX );
28 TESTCASE( ( rnd2 = rand() ) < RAND_MAX );
30 TESTCASE( rand() == rnd1 );
31 TESTCASE( rand() == rnd2 );