To elaborate... I already have a script for randomly rotating objects, but for this particular project I don't want them to rotate randomly from range of degrees; I'm looking for a way to randomly rotate a group of objects at either 90, 180, 270, or 360 degrees only. I approached an engineer friend about this, and her suggestion was this: var randNum = random.(0,3); // pick random # in range var degrees = [90, 180, 270, 360]; var myRandDegree = degrees[randNum]; At this point, I generally understand the general principle of mapping 1-4 to the degrees I want to rotate, but—as I am not a programmer—I'm looking for help in getting the syntax of the script straight. Any help will be greatly appreciated. Thanks in advance! *Also, would there be a way of applying this concept to randomly coloring a group of objects with a specific color palette? That would also be very useful.
... View more