Hello,
I would very much like to have 2 different Random instances, one which poops out real-random (or the unity approach to that) and one of which I can set the seed to a given Integer, making it poop out the same sequence every game cycle.
What i tried:
searching on google ofcourse… but it qutie hard to formulate a question that is not ambigious.
I tried instantiating a Random object by var rnd = new Random() but this is just a new pointer to the Random instance which unity provides. (probably because it is a singleton or something like that)
I hope this is clear enough.
As for sample code with which I tested the outcome:
private var rand:Random;
function Awake(){
rand = new Random();
rand.seed = 18427;
//Debug.Log either rand.value or Random.value -> both will be the same
}