# How to use a random number to play a random playlist?

**URL:** <https://discourse.nodered.org/t/how-to-use-a-random-number-to-play-a-random-playlist/13760>\
**Category:** General\
**Created:** [27 July 2019 21:44 UTC](https://discourse.nodered.org/t/how-to-use-a-random-number-to-play-a-random-playlist/13760 "2019-07-27T21:44:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 July 2019 22:12 UTC](https://discourse.nodered.org/t/how-to-use-a-random-number-to-play-a-random-playlist/13760/2 "2019-07-27T22:12:00Z")

</div>

Search "lookup" on this forum. It's been asked and solved many times.

One guy even wrote a contrib node...

> [@Map device id to name and vice versa](https://discourse.nodered.org/t/map-device-id-to-name-and-vice-versa/11561/2):
>
> Hi, I really wanted to write up and explain (one of many) ways you could achieve this but TBH, I am fairly hungover and found it easier just to knock up a demo (picture/flow worth a thousand words etc)... [{"id":"911d97ae.52d498","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"8a23298a.31ec48","type":"inject","z":"911d97ae.52d498","name":"Init pulse","topic":"","payload":"","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":120,"y":60,"wires…

[https://discourse.nodered.org/t/announce-node-red-contrib-map](https://discourse.nodered.org/t/announce-node-red-contrib-map)

---

_[View the full topic](https://discourse.nodered.org/t/how-to-use-a-random-number-to-play-a-random-playlist/13760)._
