Add ruleset
This commit is contained in:
@@ -22,3 +22,7 @@ uint32_t random_range(uint32_t max) {
|
||||
} while (r >= threshold);
|
||||
return r % max;
|
||||
}
|
||||
|
||||
void advance_state(uint32_t n) {
|
||||
state += n;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user