You can make a master layer, and add this expression to text
function shuffle(array) {
var currentIndex = array.length, randomIndex;
// While there remain elements to shuffle...
while (0 !== currentIndex) {
// Pick a remaining element...
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex--;
// And swap it with the current element.
[array[currentIndex], array[randomIndex]] = [
array[randomIndex], array[currentIndex]];
}
return array;
}
var arr = [1,2,3,4,5,6,7,8,9,10];
"["+shuffle(arr).join(",")+"]"
Then, to each layer add this expression. Assign firstIndex as the index of your first text layer.
firstIndex = 2;
val = eval(thisComp.layer("Master layer").text.sourceText)[index-firstIndex];
val