Debian Codegraph @

src/random.cpp

raw symbols SCIP
1 /***************************************************************************
2 random.cpp - description
3 -------------------
4 begin : Tue Dec 12 2000
5 copyright : (C) 2000 by Waldemar Baraldi
6 email : [email protected]
7 ***************************************************************************/
8
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18 #include "random.h"
19 #include <stdio.h>
20
21 int Random::getRandomNumber(int low, int high){
22 int result=(int)((float)(high-low+1)*(float)random()/(RAND_MAX))+low;
23 return result;
24 }
25