Answers for "unity random range int not working"

C#
13

unity random int

//If you use Int in the Random.Range() then it will
	//return an Int
	public int RanTimerHigh = 10;
    public int RanTimerLow = 1;

    void Start()
    {
        int RandomInt = Random.Range(RanTimerLow, RanTimerHigh);
    }
Posted by: Guest on March-09-2020
7

random.range unity

// returns 0 - 9
Random.Range(0, 10)
Posted by: Guest on January-30-2021
0

unity random range int not working

float rand = UnityEngine.Random.Range(0, 4);              Debug.Log(rand);
Posted by: Guest on March-31-2021

C# Answers by Framework

Browse Popular Code Answers by Language