y property

double y
getter/setter pair

Implementation

double y = Random().nextDouble() * 4 - 2;