Even randomer
This commit is contained in:
parent
3d6f20ce08
commit
59ec67e850
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue