Why not use a function rand()?

Why don’t we use a function rand()%XXX.Num(), but FMath::RandRange(0,10)?

My assumption would be that one has better performance and since its not security related then using the lighter one would make sense as long as it does what’s required.

It could also just have been whatever let’s just go with this one :smile:

A whole host of reasons

https://channel9.msdn.com/Events/GoingNative/2013/rand-Considered-Harmful