diff --git a/src/main.ts b/src/main.ts index 906342a..934d9ee 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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