00001 #ifndef CHAOS_CLASS 00002 #define CHAOS_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : chaos * 00007 * Author : Chris Koeritz * 00008 * * 00009 ******************************************************************************* 00010 * Copyright (c) 1991-$now By Author. This program is free software; you can * 00011 * redistribute it and/or modify it under the terms of the GNU General Public * 00012 * License as published by the Free Software Foundation; either version 2 of * 00013 * the License or (at your option) any later version. This is online at: * 00014 * http://www.fsf.org/copyleft/gpl.html * 00015 * Please send any updates to: fred@gruntose.com * 00016 \*****************************************************************************/ 00017 00018 #include "object_base.h" 00019 00021 00026 class chaos : public virtual object_base 00027 { 00028 public: 00029 chaos(); 00031 00032 IMPLEMENT_CLASS_NAME("chaos"); 00033 00034 void retrain(); 00036 00037 // Keep in mind for the inclusive and exclusive functions that a range which 00038 // is too large might not be dealt with well. This is because the random 00039 // functions provided by the O.S. may not support the full range of integers. 00040 00041 int inclusive(int low, int high) const; 00043 00044 int exclusive(int low, int high) const; 00046 }; 00047 00048 #endif 00049
1.5.1