test/random_test.cc
changeset 414 05357da973ce
parent 171 02f4d5d9bfd7
child 440 88ed40ad0d4f
equal deleted inserted replaced
4:530d93009979 5:06794f17d7ee
     1 /* -*- C++ -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2008
     5  * Copyright (C) 2003-2008
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
    31   //Does gamma work with integer k?
    31   //Does gamma work with integer k?
    32   a=lemon::rnd.gamma(4.0,0);
    32   a=lemon::rnd.gamma(4.0,0);
    33   a=lemon::rnd.poisson(.5);
    33   a=lemon::rnd.poisson(.5);
    34 
    34 
    35   lemon::rnd.seed(100);
    35   lemon::rnd.seed(100);
    36   lemon::rnd.seed(seed_array, seed_array + 
    36   lemon::rnd.seed(seed_array, seed_array +
    37 		  (sizeof(seed_array) / sizeof(seed_array[0])));
    37                   (sizeof(seed_array) / sizeof(seed_array[0])));
    38 
    38 
    39   return 0;
    39   return 0;
    40 }
    40 }