poissonSamples = {
const rangeWithMargin = [cardRadius, cardRadius, fieldSize.width - cardRadius, fieldSize.height - cardRadius];
let n = numCards
let points = []
while (points.length < numCards) {
points = [...samples(rangeWithMargin, n)]
n += 1
}
return points.slice(0, numCards).map(d => ({
x: d[0],
y: d[1],
rotation: Math.random() * 360
}))
}