Quantcast
Channel: Questions in topic: "choose"
Viewing all articles
Browse latest Browse all 81

Using arrays to randomly select an object

$
0
0
Hi there, I'm a newbie scripter and I'm trying to figure out how to have a script select a random object (say, every few seconds). I have 3 cylinders (let's call them Tube1, Tube2, Tube3, 1 of which will be randomly chosen through the script. I gather that this would be done through an array, but I haven't really gotten my head around how I would write this in js script, though I've been scouring the net for answers! I'm sure you guys could do this in your sleep - sorry for the stupid question :( Thanks in advance - you guys really are the best!

Viewing all articles
Browse latest Browse all 81

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>