Shop OBEX P1 Docs P2 Docs Learn Events
BASIC Stamp Electronic die — Parallax Forums

BASIC Stamp Electronic die

rusianpleyer007rusianpleyer007 Posts: 1
edited 2013-04-09 07:13 in BASIC Stamp
Hey!

I would really appreciate if you guys could give me some help completing my electronic die.
The die is suppose to randomly pick numbers and show them in the numeric module, by clicking on button 2 I choose how many sides the die are going to have,
like 4,6 or 8.
So to clear things out I first choose how many sides the die are going to have by clicking button 2, then I'm gonna press button 1 to randomly select a number depending on how many sides the die has. Also, a sound "beeps" when a number is selected. There must be the same amount of chance to get every number.
The code is located below in the pastebin link.

Thanks in advance.

http://pastebin.com/U4xqYKqb

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2013-04-09 07:13
    What's the question? If you're looking for a critique, some indenting (to show the relationship between IF/THEN statements and what they control) would be in order as well as comments describing what you're trying to accomplish with specific statements. Normally, code gets included as shown here:

    attachment.php?attachmentid=78421&d=1297987572
Sign In or Register to comment.