public float GetRandomPositionY() { float num; do { num = GaussianRandom.Val(this.MeanY, this.StdDevY); }while ((num < 0f) || (num > 1f)); return(num); }
public Vector2 GetRandomPosition() { float num; float num2; do { num = GaussianRandom.Val(this.MeanX, this.StdDevX); }while ((num < 0f) || (num > 1f)); do { num2 = GaussianRandom.Val(this.MeanY, this.StdDevY); }while ((num2 < 0f) || (num2 > 1f)); return(new Vector2(num, num2)); }