Help with random

Andre Garzia soapdog at mac.com
Sun Feb 4 19:15:21 EST 2007


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




More information about the use-livecode mailing list