var GetRandomElement = function (array, start, length){ if (start === undefined) { start = 0; } if (length === undefined) { length = _AN_Read_length('length', array); } var randomIndex = start + Math.floor(Math.random() * length); return (array[randomIndex] === undefined)? null : array[randomIndex]; } ; module.exports = GetRandomElement;