Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Is it possible to have a script randomly generate a variable within a given range? Thanks, |
||||
|
Yeah you can do all sorts of random stuff. var roll = Math.floor(Math.random() * 6); var dir = ["up", "down", "left", "right", "front", "back"]; var result = dir[roll]; print(result); Etc, etc. Read this: https://www.w3schools.com/js/def... |
|