erkyrath / lectrote

The IF interpreter in an Electron shell
Other
248 stars 28 forks source link

Random numbers #130

Closed leugengroot closed 1 year ago

leugengroot commented 3 years ago

When I use the random-number extension from Roger Firth (or the standard-library function and create a new seed), I always get the same random-numbers when I restart Lectrote.

When I run the same z-file with other interpreters (Yazim, Gargoyle) I get different numbers every time I restart the application.

Tested with Lectrote 1.3.12 (macOS) and Inform 6.34 random_test.zip

Attached test-file includes such a z-file as the source code as well.

erkyrath commented 3 years ago

This is an interpreter issue: https://github.com/curiousdannii/ifvms.js

curiousdannii commented 3 years ago

I'm pretty sure this is just the autosave feature. If you restart within the game or quit and reload you'll get new numbers.