Jump to content



Recommended Posts

I'm pretty sure the IntyBASIC random number generator isn't meant to be repeatable.  It has a _next_random function that gets called in the interrupt service routine to advance the random generator.


If you want a repeatable, replayable random number generator that runs from solely a seed and produces the exact same random numbers every time from that seed, you'll have to code one directly, I think.


LFSRs are cheap both in execution time and storage.  If you have some RAM to spare, a lagged-Fibonacci generator is also cheap, but requires RAM for the state.  And, of course, you need to expand the seed to initialize the lagged-Fibonacci history buffer.


I'm guessing you don't want the xkcd approach:



And then there's the Doom approach.


Edited by intvnut
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...