unity random number generator seed code example
Example: unity random seed
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour {
private float[] noiseValues;
void Start() {
Random.seed = 42;
noiseValues = new float[10];
int i = 0;
while (i < noiseValues.Length) {
noiseValues[i] = Random.value;
print(noiseValues[i]);
i++;
}
}
}