Package 

Class RandomExtensions

    • Method Summary

      Modifier and Type Method Description
      final static Point2D nextPoint2D(Random $self) 得到随机二维点。包含下限而不包含上限。
      final static Point2D nextPoint2D(Random $self, Pair<Double, Double> min, Pair<Double, Double> max) 得到指定范围内的随机二维点。包含下限而不包含上限。
      final static Point3D nextPoint3D(Random $self) 得到指定范围内的随机三维点。包含下限而不包含上限。
      final static Point3D nextPoint3D(Random $self, Triple<Double, Double, Double> min, Triple<Double, Double, Double> max) 得到指定范围内的随机三维点。包含下限而不包含上限。
      final static Rectangle2D nextRectangle2D(Random $self) 得到随机矩形。包含下限而不包含上限。
      final static Rectangle2D nextRectangle2D(Random $self, Quadruple<Double, Double, Double, Double> min, Quadruple<Double, Double, Double, Double> max) 得到指定范围内的随机矩形。包含下限而不包含上限。
      final static Color nextColor(Random $self) 得到随机颜色。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • nextPoint2D

         final static Point2D nextPoint2D(Random $self)

        得到随机二维点。包含下限而不包含上限。

      • nextPoint2D

         final static Point2D nextPoint2D(Random $self, Pair<Double, Double> min, Pair<Double, Double> max)

        得到指定范围内的随机二维点。包含下限而不包含上限。

      • nextPoint3D

         final static Point3D nextPoint3D(Random $self)

        得到指定范围内的随机三维点。包含下限而不包含上限。

      • nextRectangle2D

         final static Rectangle2D nextRectangle2D(Random $self)

        得到随机矩形。包含下限而不包含上限。

      • nextColor

         final static Color nextColor(Random $self)

        得到随机颜色。