Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi community,
I want to use the rand() function to generate some value at random between 0 and 255.
How can I do that ?
François
Ceil(Rand()*n)
delivers values from 1 to n, while
Floor(Rand()*n)
delivers values from 0 to n-1.
hope this helps
regards
Marco
try with
=Floor(rand()*255)
let me know
FLOOR(RAND() * 255)
Try something like this:
ceil(rand()*255)
Hi there.
Try:
TEST:
LOAD FLOOR(Rand()*256) as RandomValue autogenerate 1000;
Kind regards,
Ernesto.
actually it's
Floor(Rand()*256)
hope this helps
regards
Marco
Ceil(Rand()*n)
delivers values from 1 to n, while
Floor(Rand()*n)
delivers values from 0 to n-1.
hope this helps
regards
Marco
Hi!
Go to Ctnrl+E, there Insert > Test Script.
It generates very interesting things, so using it logic you could adopt for your solution.