Scratch for Java

Random::randomX()

Return a random x coordinate with respect to the width of the window.

Syntax

Java

.randomX()

Return

double

randomX()