+ 1
Pick random
How to use the famous pick random function? I used it on grasshopper, actually, idk if it's even a real function or something like, exclusive from there, like the drawbox function. Btw, I'm referring to a function that picks a random value from a var = [ 1 2 3 ]; Like thing.
3 ответов
+ 1
Hey, Try this 👍
var r = Math.floor(Math.random()*3+1);
console.log(r);
0
Hi, thanks, but can you explain more or tell me where i can find an explanation?