Random

Does Unity have a random function ? I checked out Mathf. but i didn’t find anything :frowning:

Check out this:
Unity - Scripting API: Random :wink:

As a side note, the search function in the docs is great for finding stuff like this.

–Eric

sorry guys for this unneccessary post :frowning: i was trying to search : “rand” and not “random” that’s why i did not get any results.

…And as another side note, the search function isn’t exactly awesome. :wink: Some people overlook it entirely, though, which is why I wanted to point it out.

–Eric

http://www.google.com/cse/home?cx=001712401338047450041%3Acsfhqk-trfa

My default search, seems to find exactly what I want… Thanks to Robotduck for it btw :slight_smile: