alpar@10: /* -*- C++ -*-
alpar@10:  *
alpar@10:  * This file is a part of LEMON, a generic C++ optimization library
alpar@10:  *
alpar@39:  * Copyright (C) 2003-2008
alpar@10:  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@10:  * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@10:  *
alpar@10:  * Permission to use, modify and distribute this software is granted
alpar@10:  * provided that this copyright notice appears in all copies. For
alpar@10:  * precise terms see the accompanying LICENSE file.
alpar@10:  *
alpar@10:  * This software is provided "AS IS" with no warranty of any kind,
alpar@10:  * express or implied, and with no claim as to its suitability for any
alpar@10:  * purpose.
alpar@10:  *
alpar@10:  */
alpar@10: 
alpar@10: #include <lemon/random.h>
alpar@10: #include "test_tools.h"
alpar@10: 
alpar@10: ///\file \brief Test cases for random.h
alpar@10: ///
alpar@10: ///\todo To be extended
alpar@10: ///
alpar@10: 
alpar@10: int main()
alpar@10: {
alpar@10:   double a=lemon::rnd();
alpar@10:   check(a<1.0&&a>0.0,"This should be in [0,1)");
alpar@10:   a=lemon::rnd.gauss();
alpar@10:   a=lemon::rnd.gamma(3.45,0);
alpar@10:   a=lemon::rnd.gamma(4);
alpar@10:   //Does gamma work with integer k?
alpar@10:   a=lemon::rnd.gamma(4.0,0);
alpar@10: }