Changeset 102:81563e019fa4 in lemon-1.2 for test
- Timestamp:
- 03/20/08 17:15:35 (17 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/random_test.cc
r92 r102 25 25 /// 26 26 27 int seed_array[] = {1, 2}; 28 27 29 int main() 28 30 { … … 35 37 a=lemon::rnd.gamma(4.0,0); 36 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; 37 45 }
Note: See TracChangeset
for help on using the changeset viewer.