import random


def generate_coordinates(min, max, amount):
  """
    Generates 2D array of random coordinates (x, y)

    :param min: minimum possible value
    :param max: maximum possible value
    :param amount: amount of rows (pairs of coordinates)
    :return: array of generated coordinates
  """
  return [[random.uniform(min, max), random.uniform(min, max)] for _ in range(amount)]