Use randi to choose an integer between 1 and the number of strings, use that to index into a cell array of char vector or a string array:
texts = ["some text", "some other text", "and more", "etc."];
selectedtext = randi(numel(texts));
disp(texts(selectedtext))