main/src/georegression/geometry/UtilPoint3D_F64.java
public static List<Point3D_F64> randomN(Point3D_F64 mean ,
											double stdX , double stdY , double stdZ ,
											int num, Random rand )
	{
		List<Point3D_F64> ret = new ArrayList<>();

		for( int i = 0; i < num; i++ ) {
			Point3D_F64 p = new Point3D_F64();
			p.x = mean.x + rand.nextGaussian() * stdX;
			p.y = mean.y + rand.nextGaussian() * stdY;
			p.z = mean.z + rand.nextGaussian() * stdZ;

			ret.add( p );
		}

		return ret;
	}
public static List<Point3D_F64> randomN(Point3D_F64 mean ,
											double stdX , double stdY , double stdZ ,
											int num, Random rand )
	{
		List<Point3D_F64> ret = new ArrayList<>();

		for( int i = 0; i < num; i++ ) {
			Point3D_F64 p = new Point3D_F64();
			p.x = mean.x + rand.nextGaussian() * stdX;
			p.y = mean.y + rand.nextGaussian() * stdY;
			p.z = mean.z + rand.nextGaussian() * stdZ;

			ret.add( p );
		}

		return ret;
	}
public static List < Point3D_F64 > randomN ( Point3D_F64 mean , double stdX , double stdY , double stdZ , int num , Random rand ) { List < Point3D_F64 > ret = new ArrayList <> ( ) ; for ( int i = 0 ; i < num ; i ++ ) { Point3D_F64 p = new Point3D_F64 ( ) ; p . x = mean . x + rand . nextGaussian ( ) * stdX ; p . y = mean . y + rand . nextGaussian ( ) * stdY ; p . z = mean . z + rand . nextGaussian ( ) * stdZ ; ret . add ( p ) ; } return ret ; }
Creates a list of random points from a normal distribution along each axis
Creates a list of random points from a normal distribution along each axis