5 Years Ago
Add min, max args to Vector/AngleRand (#1428) * Add min, max args to Vector/AngleRand function VectorRand( min --[[= -1]], max --[[= 1]] ) function AngleRand( min --[[-90 pitch, -180 yaw/roll]], max --[[= 90 pitch, 180 yaw/roll]] ) Maintains previous behaviour, but the arguments now give forced mins/maxs into math.Rand. This also directly matches the behaviour of RandomVector and RandomAngle in the mathlib. * Use C operators * get rid of default arg comments