Hello guys,
i have a problem with Random.range. Until yesterday all works as expected but today no.
I always get the same number…
In the following script for example i always get 0.4072546
If i use this script in another project it works well but in my actual project no, so i think that could be a project setting…
Have you any idea?
using UnityEngine;
public class provaScript : MonoBehaviour {
void Update () {
Debug.Log(Random.Range(0f, 1f));
}
}
UPDATE
If i make a new scene inside the same project all works as expected