cpp/cpp_tests/openmp/prod_cons.cpp
/* function to fill an array with random numbers */
function to fill an array with random numbers
function to fill an array with random numbers
void fill_rand(int const length, double *a) {
  for (int i = 0; i < length; i++) {
    randy = (RAND_MULT * randy + RAND_ADD) % RAND_MOD;
    *(a + i) = ((double)randy) / ((double)RAND_MOD);
  }
}
void fill_rand ( int const length , double * a ) { for ( int i = 0 ; i < length ; i ++ ) { randy = ( RAND_MULT * randy + RAND_ADD ) % RAND_MOD ; * ( a + i ) = ( ( double ) randy ) / ( ( double ) RAND_MOD ) ; } }
function to fill an array with random numbers
function to fill an array with random numbers
// #pragma omp parallel for firstprivate(randy) firstprivate(a)
