Random from array length

how could I get a random int from 0 to a nbt's array length? my goal is to output a random string from a string array on storage temas
Continue to help post