You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I’d like to generate a random point inside of a polygon that is defined by an array of points. -
What is the issue? Most solutions I have found use some sort of external library that ROBLOX does not have, and plus I am not very good at maths, so making an algorithm to generate a random point inside of a polygon is way beyond my capabilities.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried to look for solutions on the Developer Hub, but most of them only tell you if a point is inside of a polygon, they do not tell you how to generate a random point inside of a polygon.
The reason why I want to do this is because I want to spawn mobs in an area defined by a polygon.
If I made any mistakes in my post, please tell me.