generateRandomPoints = n =>
  Array(n)
    .fill(0)
    .map(_ => ({x: Math.random(), y: Math.random()}))
generate n random points with position x and y in [0, 1]

@param {Number} n: number of points
@return a list of randomly positioned points