# Random Light Generator FB

**URL:** https://www.wago.community/t/random-light-generator-fb/1777
**Category:** CODESYS
**Tags:** codesys
**Created:** [April 22, 2025, 3:44pm UTC](https://www.wago.community/t/random-light-generator-fb/1777 "2025-04-22T15:44:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mikel](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@Mikel](https://www.wago.community/u/Mikel)
#### Post date: [April 22, 2025, 3:44pm UTC](https://www.wago.community/t/random-light-generator-fb/1777/1 "2025-04-22T15:44:07Z")

</div>

Good Day,

I am converting a PLC program from Codesys v2.3 to 3.5.

I’m desperate to find an equivalent to the FB “Zufall” (from the WAGO Gebaeude\_allgemein Library for Codesys v2.3). This simple Function Block is used to simulate a presence by turning lights on an off randomly.

Is there anything similar for Codesys v3.5 ?

Thank you in advance for your support.

---

<div class="post-metadata">

### Author: ![WagoIcard](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagoicard/32/1508_2.png) [@WagoIcard](https://www.wago.community/u/WagoIcard)
#### Post date: [April 25, 2025, 4:46am UTC](https://www.wago.community/t/random-light-generator-fb/1777/2 "2025-04-25T04:46:54Z")

</div>

Hello, FbZufall is FbRandom in english.  
I think it’s a pseudo random generator system for 3 output.  
Could be possible to adapt it for CS3.5 but the best way would be to ask WAGO Technical support for this.
