Hello guys I will show you my small code and then ask my problem.
Void start ()
{
int a1 = Random.Range(1, 60);
Debug.Log("a1 =" + a1);
int a2 = Random.Range(48, 100);
Debug.Log("a2 =" + a2);
If(a1 < 50) {
Debug.Log(a2<50);
}
}
………>>>>>>>>>
This is my code this is working in console when I run it shows me the random value of a1 and a2 but I want that if a1 is less than 50 then the value of a2 should be less than 50. Instead of this it shows me true or false. But I need that the value of a2 should be less than 50… please tell me my mistake.