Two-element data array, choose one record randomly

The JavaScript code below creates a two-element array, choosing 1 record randomly.

// The set of data from which to select (user ID and password).
var testData =
[
["lindab462@aol.com","4690C47DADADA88BF8F4C6A2F262798A"],
["dancehottie90@msn.com","109A25E92070491C83C2ED3ABE96CACE"],
["Cortneyjboyd@gmail.com","FF94B25791A80AF1C5E11FAF66038226"],
["Gakouri@suffolk.edu","C7561DB7A418DD39B2201DFE110AB4A4"],
["tomshea9@hotmail.com","60FB1504776106EAEC25522A6CF4D9C8"],
["gonavy90@hotmail.com","DCFC756608AC5C7578C59E306CDEF7A9"],
["boyki1vm@cmich.edu","FCE9CD59CCEAA9290829200F27D150FB"],
["swalker@aps4kids.org","A5410EE37744C574BA5790034EA08F79"],
["nkechiyere@aol.com","F222791CC077C629D9357F13D2143F82"],
["chxyu@ucsc.edu","6A1759F184BCA1DA10F19441390EAA34"],
["bgammill@drury.edu","754968094C842A07B663962196A776EC"],
];

// Generate a random index into the test data.
var randomIndex = Math.min(Math.round(Math.random() * (testData.length - 1)), testData.length - 1);

// Create and populate custom properties for this instance of this Track.
var propertyList = $context.currentTrack.propertyList;
if ($context.currentClipIndex == 0)
propertyList.createProperty("email");
propertyList.setPropertyValue("email", testData[randomIndex][0]);
if ($context.currentClipIndex == 0)
propertyList.createProperty("password");
propertyList.setPropertyValue("password", testData[randomIndex][1]);