# Randomly generated rooms

**URL:** <https://forum.makecode.com/t/randomly-generated-rooms/28234>\
**Category:** Help\
**Created:** [April 14, 2024, 7:39pm UTC](https://forum.makecode.com/t/randomly-generated-rooms/28234 "2024-04-14T19:39:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Awesomefreez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/awesomefreez/32/24832_2.png) [@Awesomefreez](https://forum.makecode.com/u/Awesomefreez)\
**Post date:** [April 15, 2024, 5:10am UTC](https://forum.makecode.com/t/randomly-generated-rooms/28234/3 "2024-04-15T05:10:10Z")

</div>

I might know use this code: [How to make a sprite random choice system - #2 by richard](https://forum.makecode.com/t/how-to-make-a-sprite-random-choice-system/3726/2)  
but instead of set mysprite do set tilemap to whatever you want it to be and put an if something is touching over the if choice.

---

_[View the full topic](https://forum.makecode.com/t/randomly-generated-rooms/28234)._
