Topic: How to Random integer between min ,max

How To Edit Script Random(min,max)
if min  = 1
if max = 774516

and result integer

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How to Random integer between min ,max

Hello Prahousefamily

Did you use keyword RandomRange(1, 774516) ?

JB

3 (edited by derek 2017-07-06 22:22:19)

Re: How to Random integer between min ,max

Hello Prahousefamily, Jean,
Attached is a VERY simple example (that my grandson uses for his Lotto numbers)!
Maybe it can give you a bit of help.  But I don't know how you can code for a range where the min number doesn't begin at 1 (ie 1000-5000).
Perhaps Dmitry has a proper solution.
Regards,
Derek.
.
Jean,
Is Randomrange(x,y) supported in MVD?  I have tried to use it but with no success.

Post's attachments

Attachment icon random.zip 335.46 kb, 458 downloads since 2017-07-07 

Re: How to Random integer between min ,max

Hello Derek

I also did not manage to use RandomRange in an MVD script
If Dmitry could implement it, it could be an interesting formula

JB

Re: How to Random integer between min ,max

Thank You derek For Example Random Good And Easy To Use ..

But in Example it static value 1 to value input

i think same jean.brezhonek if add function RandomRange  in an MVD is Good Function ...
and can result
Integer  -99999 to 99999 and more
Float     -0.999  to 9.99999 and more
Text      a b c to z

My Visual Database : I Love You
Easy For Beginner Student For Me