COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/random_test.cc

    r39 r102  
    2525///
    2626
     27int seed_array[] = {1, 2};
     28
    2729int main()
    2830{
     
    3436  //Does gamma work with integer k?
    3537  a=lemon::rnd.gamma(4.0,0);
     38  a=lemon::rnd.poisson(.5);
     39
     40  lemon::rnd.seed(100);
     41  lemon::rnd.seed(seed_array, seed_array +
     42                  (sizeof(seed_array) / sizeof(seed_array[0])));
     43
     44  return 0;
    3645}
Note: See TracChangeset for help on using the changeset viewer.