ROSECODE 351
In or out?
Let the following pseudo-random generator:
How many times is the point (499,499) inside one of these triangles?
[My timing : < 1 sec]
static long seed = 641;
static long FastRandom()
{
seed = (214013 * seed + 2531011) % 2147483647;
return seed;
}
We consider the first 60000 values of this generator modulo 1000 as the coordinates of 10000 triangles:How many times is the point (499,499) inside one of these triangles?
[My timing : < 1 sec]