x property

double x
getter/setter pair

Implementation

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