DZ-Jay Posted October 25, 2022 Share Posted October 25, 2022 I have a random number generator which I seed initially with some value. I then add additional bits of randomness during the idle loop, shifting it and mixing in controller state, etc. By the time the player presses a button to start the game, the random seed has gone through many changes. Because the time the player takes to start the game is indeterminate, it more or less guarantees that the seed used during the game is non-deterministic. So that's great. 😊 However, I now need a random number before the player gets a chance to do anything. For example, I have a table of elements for my title screen (animations, sprite records, scripts, etc.), and I want to pick one at random to show at a given time, and then loop around again. The problem is that the time from booting up, to title screen, is purely deterministic. It means the sequence of items chosen will always be the same 😞 I know that there is no possible way to be truly random, but I thought to ask in case anybody has any suggestions on what to do for this particular case. I've been too deep in this project for several days now and my brain is sort of fried, so I can't really tell if what I want is possible or not. Suggestions are welcomed! dZ. Quote Link to comment Share on other sites More sharing options...
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.