Is it possible to have some sort of
command with Titanium? Or something like that? (Where it randomly chooses between values you set).
As the example above shows, the most common way is:
randomnumber = Math.floor(Math.random() * (highestNumberWanted + 1));
Another commonly used method is:
randomnumber = new Date().getTime() % (highestNumberWanted + 1);