# Presenting Random Lines with Slider

**URL:** <https://forum.makecode.com/t/presenting-random-lines-with-slider/804>\
**Category:** Arcade\
**Tags:** game, graphics-and-math\
**Created:** [November 20, 2019, 5:11pm UTC](https://forum.makecode.com/t/presenting-random-lines-with-slider/804 "2019-11-20T17:11:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WeCodeMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wecodemakecode/32/196_2.png) [@WeCodeMakeCode](https://forum.makecode.com/u/WeCodeMakeCode)\
**Post date:** [November 20, 2019, 5:11pm UTC](https://forum.makecode.com/t/presenting-random-lines-with-slider/804/1 "2019-11-20T17:11:22Z")

</div>

> **[random lines 3.5](https://arcade.makecode.com/98504-35593-95091-13980)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Use right/left arrows to change slider, which is the number of lines. Use up/down arrows to select a single color. Button A changes to random colors. Button B changes background color.

Program illustrates use of slider UI element.

More info at [https://wecodemakecode.com/2019/11/20/code-for-random-lines-in-makecode-arcade/](https://wecodemakecode.com/2019/11/20/code-for-random-lines-in-makecode-arcade/)
