COIN-OR::LEMON - Graph Library

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


Ignore:
Timestamp:
10/02/06 18:11:00 (18 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
  • lemon/hypercube_graph.h

    r2223 r2229  
    261261    /// dim2::Point<double> base[DIM];
    262262    /// for (int k = 0; k < DIM; ++k) {
    263     ///   base[k].x = rand() / (RAND_MAX + 1.0);
    264     ///   base[k].y = rand() / (RAND_MAX + 1.0);
     263    ///   base[k].x = random.getReal();
     264    ///   base[k].y = random.getReal();
    265265    /// }
    266266    /// HyperCubeGraph::HyperMap<dim2::Point<double> >
Note: See TracChangeset for help on using the changeset viewer.