# Random generation

**URL:** https://forum.makecode.com/t/random-generation/40691
**Category:** Help
**Created:** [November 28, 2025, 3:58am UTC](https://forum.makecode.com/t/random-generation/40691 "2025-11-28T03:58:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BUM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bum/32/22127_2.png) [@BUM](https://forum.makecode.com/u/BUM)
#### Post date: [November 28, 2025, 3:58am UTC](https://forum.makecode.com/t/random-generation/40691/1 "2025-11-28T03:58:18Z")

</div>

> **[secret project](https://arcade.makecode.com/S47897-94712-30809-00184)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

is someone able to fix my random generation so that the tiles are constantly 1 tile apart?

---

<div class="post-metadata">

### Author: ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)
#### Post date: [November 29, 2025, 7:00am UTC](https://forum.makecode.com/t/random-generation/40691/2 "2025-11-29T07:00:54Z")

</div>

Your profile picture is a bit creepy ngl… I’d change it to like, a pixel art eye.

Sure! Just place the tiles twice apart and then make a pathway between them. This is a simple function to place track:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/6/26e3634d5341dfdcd31805d113a14be637903429.png)  
Here is my example: [https://arcade.makecode.com/S01544-03052-66975-43170](https://arcade.makecode.com/S01544-03052-66975-43170)

---

<div class="post-metadata">

### Author: ![BUM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bum/32/22127_2.png) [@BUM](https://forum.makecode.com/u/BUM)
#### Post date: [December 1, 2025, 7:16pm UTC](https://forum.makecode.com/t/random-generation/40691/3 "2025-12-01T19:16:26Z")

</div>

are able to make it to where when it ends it places the door tile
