can anybody help with the randomint function
I dont get the values which are written in the task description.
I use this:
static long seed=12345;
int randomint( int n)
{
long s= seed * 22695477+1;
int x = (s / 65536)%16384;
x= x % n;
seed =s;
return x;
}