11/30/2015 4:03 PM | |
Posts: 1 Rating:
|
Hello, I am implementing a home automation system, however, with the lighting I wanted to generate any random number from 0 ---> 1.Please help me in this regard. BEST REGARDS ------------------------------------------------------------------------------------------ |
Last edited by: Min_Moderator at: 12/1/2015 1:22:19 PMNew subject after splitting |
|
12/2/2015 3:05 PM | |
Joined: 7/9/2015 Last visit: 8/16/2024 Posts: 3922 Rating:
|
Hi marisa,
Siemens has a tool collection of functions for bit, number and mathematical operations. There you can find a "Random number generator". Please look here: https://support.industry.siemens.com/cs/ww/en/view/29851674
It´s for numbers between -32768 to +32767. You can convert to real, divide with 32768 and do the absolute value....so you have numbers between 0 and 1.
Regards, Towome |
Last edited by: Towome at: 12/2/2015 3:11:40 PM
|
|
This contribution was helpful to
1 thankful Users |
4/5/2020 1:12 AM | |
Posts: 1 Rating:
|
Thank you for that link! Helped me a lot! |
Follow us on