How to make backrounds random

i was making snake and wanted it to be more like googles snake with changing backrounds but now i want my game to be randomized so help!

1 Like

You could put all of the backgrounds into an array and then call for a random place in the array as the background!