12 Replies Latest reply on May 15, 2006 10:05 AM by

    Lingo code to show a random number

      I am learning Director and my partner and I are trying write lingo code for when a button is clicked, a random number between 1 and 6 is shown in a text field. Can someone help me? I tried the code in the Director help that is written: diceroll = (random (6) + random (6)). We want it for only one die, so we didn't add the second random(6), but we haven't been able to figure out what else we should be putting in the code. Thank you.