How to get the RNG seed?

woopdeedoowoopdeedoo Posts: 109Member
edited October 2017 in Programming

Is there a way to get the seed used by the RNG after I randomize() it?
There doesn't seem to be any getter function for this.

Best Answer

  • CyborgNachteCyborgNachte Posts: 3
    Accepted Answer

    you could use seed() and use your own seed instead of randomize (and therefore know it), but with a type of nil, I'm not sure you can fetch randonize()'s seed number

Answers

  • CyborgNachteCyborgNachte Posts: 3Member
    Accepted Answer

    you could use seed() and use your own seed instead of randomize (and therefore know it), but with a type of nil, I'm not sure you can fetch randonize()'s seed number

  • woopdeedoowoopdeedoo Posts: 109Member

    I ended up doing that. But I still needed to randomize first, so that the generated seed is random, and then I used seed(). At least that's how I managed to make it work.

Sign In or Register to comment.