Content
@
https://opensea.io/collection/farcaster-generative-art-channel
0 reply
0 recast
0 reaction
Piter Pasma
@piterpasma
I want this question to have its own thread :-) What's your favourite function?
6 replies
0 recast
7 reactions
Infinity
@infinityproject
Inclusive rnd range. Math.floor(Math.random() * ((max-min)+1) + min - use it all the time
2 replies
0 recast
1 reaction
Piter Pasma
@piterpasma
BTW sorry I don't mean to criticize your code, if it's useful to you.
1 reply
0 recast
0 reaction
Piter Pasma
@piterpasma
I'm just curious about the off by one errors
1 reply
0 recast
0 reaction
Infinity
@infinityproject
Its all good, hammer away. I have spent my time in many code reviews. 😂 Just like everything right tool right job. As you say this is complete disaster with array and you get the 1 off error with get you every-time. I use on a range control for var setting. E.g x = rngI(30,40) I also like it for jitters
1 reply
0 recast
1 reaction