# How to make backrounds random

**URL:** <https://forum.makecode.com/t/how-to-make-backrounds-random/16653>\
**Category:** Help\
**Created:** [November 28, 2022, 5:49pm UTC](https://forum.makecode.com/t/how-to-make-backrounds-random/16653 "2022-11-28T17:49:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmynewtroen](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jimmynewtroen](https://forum.makecode.com/u/jimmynewtroen)\
**Post date:** [November 28, 2022, 5:49pm UTC](https://forum.makecode.com/t/how-to-make-backrounds-random/16653/1 "2022-11-28T17:49:15Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [November 28, 2022, 9:37pm UTC](https://forum.makecode.com/t/how-to-make-backrounds-random/16653/2 "2022-11-28T21:37:16Z")

</div>

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