public Vector3f random(Vector3f result) {
        if (result == null) {
            result = new Vector3f();
        }

        float s = FastMath.nextRandomFloat();
        float t = FastMath.nextRandomFloat();

        float aMod = 1.0f - s - t;
        result.set(a.mult(aMod).addLocal(b.mult(s).addLocal(c.mult(t))));
        return result;
    }
<code>random</code> returns a random point within the plane defined by:
A, B, C, and (B + C) - A.

@param result
           Vector to store result in
@return a random point within the rectangle.
jme3-core/src/main/java/com/jme3/math/Rectangle.java