Get a random item from array

An example showing how to get a random item from array using Tizen 2.3.
var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
array[Math.floor(Math.random() * array.length)];

Responses

0 Replies