public static Vector2f insideUnitCircle() {
        // Angle [0, 2PI]
        float angle = FastMath.TWO_PI * nextRandomFloat();
        // For uniform distribution, R^2 is uniform
        float radius = FastMath.sqrt(nextRandomFloat());

        float x = radius * FastMath.cos(angle);
        float y = radius * FastMath.sin(angle);

        return new Vector2f(x, y);
    }
Returns a random point inside or on a circle with radius 1.0.
This method uses polar coordinates combined with a square-root radius.

@return A new {@link Vector2f} representing a random point within the unit circle.
jme3-core/src/main/java/com/jme3/math/FastMath.java