finished random map generation
This commit is contained in:
@ -35,3 +35,7 @@ int RNG::get_curr_rand_num() const {
|
||||
bool RNG::trial(fraction &psuccess) {
|
||||
return (rand() % psuccess.denominator) < psuccess.numerator;
|
||||
}
|
||||
|
||||
bool RNG::coin_flip() const {
|
||||
return rand() % 2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user