# Flow die willeurig een lamp aanzet

**URL:** <https://community.homey.app/t/flow-die-willeurig-een-lamp-aanzet/144699>\
**Category:** Flows\
**Created:** [October 29, 2025, 7:31pm UTC](https://community.homey.app/t/flow-die-willeurig-een-lamp-aanzet/144699 "2025-10-29T19:31:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 29, 2025, 9:46pm UTC](https://community.homey.app/t/flow-die-willeurig-een-lamp-aanzet/144699/4 "2025-10-29T21:46:33Z")

</div>

Ik kwam op 49.xx% uit als beste waarde voor iedere kaart, zie voorbeeld met 4 flows

> [@Random flows](https://community.homey.app/t/random-flows/55614/2):
>
> Something like this (to get the idea). The logics condition “proceed with a chance of x %” is key here. It works with numbers around 49 and up (49.1). Optional: I made a Logics numeric variable, so I can change the x % number (for finetuning) for all flows at once

.

Andere benadering:

Je kunt ook een tekstvariabele aanmaken met als _ **vaste** _ waarde  
`{{ round( random(1, 4) ) }}`  
Deze geeft steeds een willekeurig getal tussen 1 en 4 wanneer de variabele in een flowkaart wordt uitgelezen.

Het is niet exact willekeurig, sommige cijfers komen vaker voor dan andere, zie [deze test](https://community.homey.app/t/random-flows/55614/9)

Vb

 ![Screenshot_20251029_224353_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/8/380ce779f82bb1b69086d5339113d1795e035b70.jpeg)

 ![Screenshot_20251029_211816_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0a633d0ca9a47b8ecf789e4e6c0f4114a776cd39.jpeg)

---

_[View the full topic](https://community.homey.app/t/flow-die-willeurig-een-lamp-aanzet/144699)._
