Quantcast
Channel: Questions in topic: "choose"
Viewing all articles
Browse latest Browse all 81

Choose between -5, 5 (not range)

$
0
0
I want to choose between two numbers and one of them is a negative number. I've searched about how to choose between numbers in Unity, and answers using an array. You create an array, put the numbers in it, and with a new variable using random range you pick a number from that array, but the problem is arrays don't accept a negative number. So I can't pick between -5 and 5 this way.

Viewing all articles
Browse latest Browse all 81

Trending Articles