How many many Pseudo-random sequences can be gotten from Random using Random.InitState()?

Is it just the maximum value of int? I want to create a procedural world where each world has it’s own seed so that a particular world could be generated the same way every time using that seed. I am wondering how many different worlds I would be able to have. Thanks

@CalmNiceguy
Unfortunately no one answered, so hopefully you found an answer. And maybe I shouldn’t necro thread, but I’m going to try to give you an educated guess, anyway. You seem like a calm, nice guy.

Assuming that the only kind of variable you can pass to Random.InitState() is an Int, then it would be limited by the Integer Limits INT_MIN is –2147483648
and INT_MAX is 2147483647, which would give you 4,294,967,296 possible Pseudo-random sequences.

However, be aware that using System.Random instead of UnityEngine.Random may be a better option when generating levels, because that way you can have an instance of System.Random specifically for generating those levels. With UnityEngine.Random you can only have the one random number generator, so if any calls are made to Random while you are generating something from a seed, it will give you inconsistent results.

@Fragmental Thanks for the post anyway. Unfortunately I was not able to come up with a definitive answer yet. I did think of many other questions to ask related to this though, such as “How big can each world be?”. I will be sure to watch out for differences in System.Random and UnityEngine.Random when I get back to this project though!