kn4tseb
Master
Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0
|
RE: How to compare random values
one last thing,
<R20> returns a number between 0 and 19?
what about rand(20)? it is the same?
what if i want a number between 0 and 20
<r0,20>??
EDIT:
well here it is in case in the future someone as new as me needs it
a + b + c + d + e = 20
local.a <eval 20-<r0,20>>
local.b <eval <r0,<eval 20-<local.a>>>>
local.c <eval <r0,<eval 20-<local.a>+<local.b>>>>
local.d <eval <r0,<eval 20-<local.a>+<local.b>+<local.c>>>>
local.e <eval 20-<eval <local.a>+<local.b>+<local.c>+<local.d>>>
(This post was last modified: 06-18-2014 09:50 AM by kn4tseb.)
|
|
06-18-2014 09:12 AM |
|
|