mesa_frames.Grid.random_pos#

Grid.random_pos(n: int) DataFrame#

Return a random sample of positions from the space.

Parameters:

n (int) – The number of positions to sample

Returns:

A DataFrame with the sampled positions

Return type:

DataFrame