Generated with
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.

O1Library DocsThis companion object of class GridPos provides a couple of utility methods.
The names of the product elements
The name of the type
Returns a randomly constructed GridPos whose x and y are between the given minima (inclusive) and maxima (exclusive). Uses the scala.util.Random singleton.
Returns a randomly constructed GridPos whose x and y are between the given minima (inclusive) and maxima (exclusive). Uses the scala.util.Random singleton.
Returns a randomly constructed GridPos whose x and y are between the given minimum (inclusive) and maximum (exclusive). The limits for x and y are the same. Uses the scala.util.Random singleton.
Returns a randomly constructed GridPos whose x and y are between the given minimum (inclusive) and maximum (exclusive). The limits for x and y are the same. Uses the scala.util.Random singleton.