// set the var public string[][] pass = new string[2][]; // add values pass[0] = new string[] { "book", "librarian", "quiet","read" }; pass[1] = new string[] { "dog","cop","cuffs","coffee","doughnut","butts" }; // grab a random value passUse = pass[level - 1][Random.Range(0, pass[level - 1].Length)]; Debug.LogWarning("Shhhh, the password is: " + passUse);