docServerUserLandCom picture
Contents
Frontier Site

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.


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.