jeudi 26 mai 2016

Exclude range within random range between negative and positive float. c# unity

Have a variable that I give a random range between -2.0f and 2.0f (Random.Range(-2.0f, 2.0f); in Unity/C#), but I don't want it to pick a number between -0.6f and 0.6f.

How do I got about doing this?

http://ift.tt/1THK551




Aucun commentaire:

Enregistrer un commentaire