Visual basic help if anyone knows code

Welcome to RCTalk

Come join other RC enthusiasts! You'll be able to discuss, share and private message with other members of our community.

This site may earn a commission from merchant affiliate
links, including eBay, Amazon, and others.

Mido

RCTalk Talkaholic
Messages
447
Reaction score
0
Location
Ottawa
RC Driving Style
  1. Bashing
  2. Racing
Alright, so i just started computer programming class and its cool so far!
I'm trying to create a program that, simulates rolling a pair of dice 100 times. Have the program print out the number of times the sum of the dice equaled each number from 2 to 12.

So I'm guessing i need to create a loop, that inside has

dice1 = Int(3 * Rnd()) + 4
dice2 = Int(3 * Rnd()) + 4

But I'm not too sure how this works. Imr eally confused on how to do these things
If someone could help me out that would be great. Just remember I'm a newbie so i dont know any of the fancy stuff, just BASICS!
thanks all
 
It's been many years since I've used VB, but back when I did use it I found planetsourcecode.com to be of great help.
 
Back
Top