random.hpp 364 B

123456789101112131415
  1. // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef RANDOM_HPP
  4. #define RANDOM_HPP
  5. #include "cbasetypes.hpp"
  6. void rnd_init(void);
  7. int32 rnd(void);// [0, SINT32_MAX]
  8. int32 rnd_value(int32 min, int32 max);// [min, max]
  9. bool rnd_chance( uint16 chance, uint16 base );
  10. #endif /* RANDOM_HPP */