rectangle.random

Syntax rectangle.random (t, l, b, r)

Params t, l, b, and r are all numbers.

Action Produce the coordinates for a rectangle randomly generated but falling within the bounds of the rectangle defined by the four arguments.

Returns The newly created rectangle

Examples rectangle.random (10, 10, 500, 500)
» 123, 184, 470, 445

Notes This verb is implemented as a script.

The rectangle produced by this verb will be a valid, drawable object within the boundaries established by the parameters.

Discuss