Hey guys, is there a function like unity’s random.range in flax engine, I’m trying to assign materials randomly for my game
Hey guys, is there a function like unity’s random.range in flax engine, I’m trying to assign materials randomly for my game
The System namespace in C# has a bult-in Random class.
Flax also has a built-in RandomStream class that has a RandRange(float min, float max) function. This may be what you were looking for. (Docs link)