Displaying 1 result from an estimated 1 matches for "new_random_seed".
2009 Jan 31
2
[LLVMdev] -msse3 can degrade performance
...t;i = I;
if (J == 0)
J = 16 ;
else J--;
R->j = J;
if (R->haveRange)
return R->left + dm1 * (double) k * R->width;
else
return dm1 * (double) k;
}
double MonteCarlo_integrate(int Num_samples)
{
Random R = new_Random_seed(SEED);
int under_curve = 0;
int count;
for (count=0; count<Num_samples; count++)
{
double x= Random_nextDouble(R);
double y= Random_nextDouble(R);
if ( x*x + y*y <= 1.0)
under_curve ++;
}
Random_delete(R);...