add $rand command

This commit is contained in:
Martin Michelsen
2022-07-11 11:04:26 -07:00
parent abe64af17b
commit 0a115427a1
17 changed files with 159 additions and 80 deletions
+3 -1
View File
@@ -2,6 +2,8 @@
#include <stdint.h>
#include <random>
struct RareItemDrop {
@@ -24,4 +26,4 @@ struct RareItemSet {
uint8_t secid);
} __attribute__((packed));
bool sample_rare_item(uint8_t pc);
bool sample_rare_item(std::mt19937& rand, uint8_t pc);