COIN-OR::LEMON - Graph Library

Changeset 2229:4dbb6dd2dd4b in lemon-0.x for test/heap_test.h


Ignore:
Timestamp:
10/02/06 18:11:00 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2969
Message:

Mersenne Twister random number generator

The code is based on the official MT19937 implementation
It is fully rewritten:

http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html

todo: fixing copyright information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/heap_test.h

    r1956 r2229  
    4646
    4747  for (int i = 0; i < n; ++i) {
    48     v[i] = rand() % 1000;
     48    v[i] = rnd.getInt(1000);
    4949    heap.push(i, v[i]);
    5050  }
     
    6666
    6767  for (int i = 0; i < n; ++i) {
    68     v[i] = rand() % 1000;
     68    v[i] = rnd.getInt(1000);
    6969    heap.push(i, v[i]);
    7070  }
    7171  for (int i = 0; i < n; ++i) {
    72     v[i] += rand() % 1000;
     72    v[i] += rnd.getInt(1000);
    7373    heap.increase(i, v[i]);
    7474  }
Note: See TracChangeset for help on using the changeset viewer.