~ubuntu-branches/ubuntu/wily/aldo/wily

« back to all changes in this revision

Viewing changes to include/random.hh

  • Committer: Bazaar Package Importer
  • Author(s): Giuseppe Martino (denever)
  • Date: 2006-04-19 11:53:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060419115319-bjhy63yl1tm1jwqh
Tags: 0.7.1-1
* New upstream release Closes: #361926
* Removed TODO in debian/docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- C++ -*-
 
2
/***************************************************************************
 
3
                         librandom part of Aldo
 
4
                          --------------------
 
5
    begin                : Sun May 6 2001
 
6
    copyright            : Giuseppe "denever" Martino
 
7
    improved             : Bob Harrington
 
8
    email                : denever@users.sourceforge.net
 
9
 ***************************************************************************/
 
10
/***************************************************************************
 
11
 *                                                                         *
 
12
 *   This program is free software; you can redistribute it and/or modify  *
 
13
 *   it under the terms of the GNU General Public License as published by  *
 
14
 *   the Free Software Foundation; either version 2 of the License, or     *
 
15
 *   (at your option) any later version.                                   *
 
16
 *                                                                         *
 
17
 *  This program is distributed in the hope that it will be useful,        *
 
18
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
 
19
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
 
20
 *  GNU General Public License for more details.                           *
 
21
 *                                                                         *
 
22
 *  You should have received a copy of the GNU General Public License      *
 
23
 *  along with this program; if not, write to the Free Software            *
 
24
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,             *
 
25
 *  MA 02110-1301 USA                                                      *
 
26
 ***************************************************************************/
 
27
 
 
28
 
 
29
#ifndef RANDOM_H
 
30
#define RANDOM_H
 
31
 
 
32
namespace librandom
 
33
{
 
34
    class Random
 
35
        {
 
36
        private:
 
37
            unsigned long m_seed;
 
38
            unsigned long m_count;
 
39
        public:
 
40
            Random();
 
41
            int integer(int max);
 
42
            int integer(int min, int max);
 
43
        };
 
44
}
 
45
 
 
46
#endif // RANDOM_H