DEV Community

loading...

Unity Random number generation

vinod
Electrical engineer, Game developer and a blogger
・1 min read

Unity Random number generation explained

void Start()
{
 Random.seed = 1534;
}

void Update()
{
//random float
float randnum = Random.Range(2.0f, 10.0f)
}
Enter fullscreen mode Exit fullscreen mode

}

Discussion (0)