QcWeatherCycle::Draws Class
class QcWeatherCycle::DrawsThe random draws of one tick for purpose (strikes, snowfall), from the seed and the tick the weather has reached: the same world draws the same in the same tick, whenever the server was started. More...
| Header: | #include <server/weather/QcWeatherCycle.h> |
Public Functions
Detailed Description
A splitmix64 stream, set up anew each tick at the cost of one multiplication.
Member Function Documentation
int Draws::bounded(int highest)
Returns the next number in [0, highest) (highest > 0).
int Draws::bounded(int lowest, int highest)
Returns the next number in [lowest, highest) (highest > lowest).