• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /* test_uniform_smallint.cpp
2   *
3   * Copyright Steven Watanabe 2011
4   * Distributed under the Boost Software License, Version 1.0. (See
5   * accompanying file LICENSE_1_0.txt or copy at
6   * http://www.boost.org/LICENSE_1_0.txt)
7   *
8   * $Id$
9   *
10   */
11  
12  #include <boost/random/uniform_smallint.hpp>
13  #include <boost/random/uniform_int.hpp>
14  #include <boost/math/distributions/uniform.hpp>
15  
16  #define BOOST_RANDOM_DISTRIBUTION boost::random::uniform_smallint<>
17  #define BOOST_RANDOM_DISTRIBUTION_NAME uniform_int
18  #define BOOST_MATH_DISTRIBUTION boost::math::uniform
19  #define BOOST_RANDOM_ARG1_TYPE int
20  #define BOOST_RANDOM_ARG1_NAME b
21  #define BOOST_RANDOM_ARG1_DEFAULT 1000
22  #define BOOST_RANDOM_ARG1_DISTRIBUTION(n) boost::uniform_int<>(0, n)
23  #define BOOST_RANDOM_DISTRIBUTION_INIT (0, b)
24  #define BOOST_MATH_DISTRIBUTION_INIT (0, b+1)
25  #define BOOST_RANDOM_DISTRIBUTION_MAX b
26  
27  #include "test_real_distribution.ipp"
28