diff options
Diffstat (limited to 'engines/titanic/titanic.h')
-rw-r--r-- | engines/titanic/titanic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/titanic.h b/engines/titanic/titanic.h index 43f3fa07f3..fdc9402d89 100644 --- a/engines/titanic/titanic.h +++ b/engines/titanic/titanic.h @@ -164,6 +164,11 @@ public: uint getRandomNumber(uint max) { return _randomSource.getRandomNumber(max); } /** + * Returns a random floating point number between 0.0 to 65535.0 + */ + double getRandomFloat() { return getRandomNumber(0xffffffff) * 0.000015259022; } + + /** * Support method that generates a savegame name * @param slot Slot number */ |