minuet.utils.random#

Functions

random_unique_points(ndim, n, c_min, c_max)

Generate random coordinates without duplicates

random_unique_points(ndim: int, n: int, c_min: int, c_max: int, dtype=np.int32)#

Generate random coordinates without duplicates

Parameters:
  • ndim – the dimension of each coordinate

  • n – the number of points to be generated

  • c_min – the minimum coordinate

  • c_max – the maximum coordinate

  • dtype – the coordinate data type

Returns:

a numpy array consists of generated coordinates