Even randomer

This commit is contained in:
arne 2024-07-21 00:47:18 +02:00
commit 59ec67e850

View file

@ -13,8 +13,10 @@ const height_ = 594
const cellSize_ = 12
const padding_ = 5 // * cellSize
const xSeeds_ = Math.random().toString(2).substring(46, 54)
const ySeeds_ = Math.random().toString(2).substring(46, 54)
const randomSeed = () => Math.random().toString(2).split('.').pop()!.slice(Math.floor(Math.random() * -9))
const xSeeds_ = randomSeed()
const ySeeds_ = randomSeed()
const unit_ = 'mm'
// turn these into reactive values to trigger re-rendering on change