random method

  1. @override
Vector2 random()
override

Implementation

@override
Vector2 random() {
  x = math.Random().nextDouble();
  y = math.Random().nextDouble();

  return this;
}