# I need help with making an RNG game

**URL:** <https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349>\
**Category:** Help\
**Created:** [September 18, 2025, 9:48pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349 "2025-09-18T21:48:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [September 18, 2025, 9:48pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349/1 "2025-09-18T21:48:06Z")

</div>

Hello, ive looked high and low on this site and couldnt find anything i could either understand or use (im still new to coding)  
My goal is to make a Pet Simulator - esque game  
im not sure what im doing anymore and i need some advice and help to point me in the right direction

> **[rng i guess](https://arcade.makecode.com/S57145-68337-25543-36735)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [September 19, 2025, 7:04pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349/2 "2025-09-19T19:04:49Z")

</div>

i changed it a bit  
made it more bearable to look at  
but my current problem is trying to figure out this bit

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/f/9f3a07e1b6766c7315834d2c0d4ccb1b8c7fefca.png)

> **[rng i guess](https://arcade.makecode.com/S22329-70205-12341-52314)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/25398_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [September 20, 2025, 8:46pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349/3 "2025-09-20T20:46:53Z")

</div>

i made it so that it rolls the plains pets.

> **[rng i guess](https://arcade.makecode.com/S24992-84432-82135-58885)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

you just need to fix the part that i dont know that keeps stopping the rolling for some reason.

Good Luck!

---

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [September 22, 2025, 5:32pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349/4 "2025-09-22T17:32:40Z")

</div>

thank you so muchyoure a life saver  
ill make sure to credit you when i turn this in

---

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [September 22, 2025, 5:32pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349/5 "2025-09-22T17:32:52Z")

</div>

i do admit the reason why i avoid making new sprite kinds is because last time i did so, every tim i opened the project the next day the new sprite kind would disappear causing the whole game to teak out

---

<div class="post-metadata">

**Author:** ![MasonTheLitten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/masonthelitten/32/24867_2.png) [@MasonTheLitten](https://forum.makecode.com/u/MasonTheLitten)\
**Post date:** [September 22, 2025, 10:56pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349/6 "2025-09-22T22:56:53Z")

</div>

okay so  
everything just disappeared for no reason  
and you can see i have more variables than just i j and the other two

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/c/acb3bba3d3a636cba51c38d504f433fee5205196.png)  
what justy happened

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/25398_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [September 23, 2025, 8:24pm UTC](https://forum.makecode.com/t/i-need-help-with-making-an-rng-game/39349/7 "2025-09-23T20:24:07Z")

</div>

does sit still work? if it does then just don’t mind it and just copy and paste variable from previous ones. it might come back if you copy and paste them but idk
