fallout2-ce/src/random.h

23 lines
463 B
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef RANDOM_H
#define RANDOM_H
#include "db.h"
typedef enum Roll {
ROLL_CRITICAL_FAILURE,
ROLL_FAILURE,
ROLL_SUCCESS,
ROLL_CRITICAL_SUCCESS,
} Roll;
void randomInit();
void randomReset();
void randomExit();
int randomSave(File* stream);
int randomLoad(File* stream);
int randomRoll(int difficulty, int criticalSuccessModifier, int* howMuchPtr);
int randomBetween(int min, int max);
void randomSeedPrerandom(int seed);
#endif /* RANDOM_H */