I need a routine to get some random 2D vectors with higher probability to random spots. The spots can be rectangles as well. Please help me.
The function have to look like these
public Vector GetRandomHotSpotVectors(Vector minPosition, Vector maxPostion, int spotsCount, float minSpotSize, float maxSpotSize, int VectorCount);
var vectors = GetRandomHotSpotVectors(new Vector(0,0), new Vector(200,200), 2, 20, 30, 44);

1 Answer