Fwd: Help with random

Kevin J kevinj30 at gmail.com
Sun Feb 4 19:24:24 EST 2007


Ya that I can do. Sorry I should have been a little more clear. I have to
input fields and a button, input field 1 in the number of dice field 2 is
the dice type. So when a user enters the numbers ie: 3 die 6, 10 die 6. I
need to to basically do the same thing but not have to use that many puts
lol.

Thanks
Kevin

---------- Forwarded message ----------
From: Andre Garzia <soapdog at mac.com>
Date: Feb 4, 2007 7:15 PM
Subject: Re: Help with random
To: How to use Revolution <use-revolution at lists.runrev.com>

Hello Kevin,

be most welcome!!!

to roll 3d6 try something like

put random(6) into d1
put random(6) into d2
put random(6) into d3
put d1 + d2 + d3 into TotalValue

You can always search the built-in dictionary in the documentation
under the help menu for learning more about the commands.

Cheers
andre

On Feb 4, 2007, at 10:08 PM, Kevin J wrote:

> Hello,
>
> I am new to revolution and so far love the program. I am having a
> little
> problem that I can't seem to figure out with using random. What I
> am trying
> to accomplish is to make a random
> roll and adding the results up. ie: like rolling 3 6 sided dice and
> add the
> results together. I can get the program to produce the random of a
> number
> with no problems.
>
> Is there a way to accomplish the task?
>
> Thanks
>
> Kevin
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list