Seed Numbers
1)Seed Numbers are used to find if a given number is divisible by a prime number. Although the concept is not used often, for some number, the divisibility rules cannot be applied and seed numbers come in handy there. This means that when you give the same seed, the function always gives the same outputs in the same order.
2)
Here's an example of a simple random-number formula
int rand() { random_seed = random_seed * 1103515245 +12345;
return (unsigned int)(random_seed / 65536) % 32768; }