cryowraith
New Member
- Reaction score
- 7
GetRandomReal(GetRectMinX(r),GetRectMaxX(r))
GetRandomReal(GetRectMinY(r),GetRectMaxY(r))
local rect r = //Your Rect
// If you want coordinates:
local real x = GetRandomReal(GetRectMinX(r), GetRectMaxX(r))
local real y = GetRandomReal(GetRectMinY(r), GetRectMaxY(r))
//If you want a location:
local location l = Location(GetRandomReal(GetRectMinX(r), GetRectMaxX(r)), GetRandomReal(GetRectMinY(r), GetRectMaxY(r)))