foxes.utils.random_xy_square(n, min_dist=500, xmax_ini=None, growth=1.02, seed=None, verbosity=1)[source]

Creates random xy positions within a square, with mean (0, 0)

Parameters

n: int

The number of positions

min_dist: float

The minimal distance between any two positions

xmax_ini: float, optional

The initial maximal distance of any coordinates

growth: float

The growth factor of the initial radius, must be greater 1

seed: int, optional

The random seed

verbosity: int

The verbosity level. 0 = silent

Returns

xy: numpy.ndarray

The positions, shape: (n, 2)