COIN-OR::LEMON - Graph Library

Changeset 102:81563e019fa4 in lemon-main for test


Ignore:
Timestamp:
03/20/08 17:15:35 (17 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Seeding random sequence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/random_test.cc

    r92 r102  
    2525///
    2626
     27int seed_array[] = {1, 2};
     28
    2729int main()
    2830{
     
    3537  a=lemon::rnd.gamma(4.0,0);
    3638  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;
    3745}
Note: See TracChangeset for help on using the changeset viewer.