Randomized Text Selection

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ImNotARobot

So for the game i am making i want to make a title screen like minecraft which has a splash text that has randomly chosen line of text every time you boot up the game.
I want to make a thing like that which choses a random line of text from a .json file and then puts it in a label node.

:bust_in_silhouette: Reply From: ramazan
var a = ["aa", "bb", "cc"]

func _ready():
  randomize()
  a.shuffle()
  print(a[0])
  pass

Let me know if you can’t add them where you want them