I'm trying to generate a random number between 0 and 2.
The rand()-functions descriptions says something like: "... (including both corner numbers)"
The below screenshot is in german, but I assume the english meaning is clear.
However, after some test, rand(0,2) definitly generates only either 0 or 1, not including the upper border 2.
Can anyone verify this behavior?
Thanks for your feedback!
Please refer to the document:
This example gets a random integer from the specified range, excluding the maximum value:
rand(0,2) it will return 0 or 1. If you want to return 0,1 or 2, it should be rand(0,3).
Best Regards,Community Support Team _ Lin TuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the on demand sessions that are available now!
ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.