| 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"cxx . . $ `<file>/src/random.h`/ |
| 19 | #include <stdio.h> |
| 20 | |
| 21 | int Randomcxx . . $ Random#::getRandomNumbercxx . . $ Random#getRandomNumber(9b79fb6aee4c0440).(int low, int high){ |
| 22 | int result=(int)((float)(high-low+1)*(float)random()/(RAND_MAXcxx . . $ `<external>/10696550936717951914/stdlib.h:87:9`!))+low; |
| 23 | return result; |
| 24 | } |
| 25 |