Discussion Locked

Coin Toss

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need a simple program in VB for game that simulates a coin toss. Each coin toss should print heads or tails at random. The program should loop 100 times, keeping count of the results. The program should call a seperate function that takes no arguments an returns 0 for Tails and 1 for heads.

7 replies

by timthetoolman

Ha!

It sounds like you might need this for a school assignment. You'll never learn unless you write it yourself!

If not, then explain why and we'll provide. Its is a simple program - exactly the kind of "first assignment" one might get from school...

Cheers,
Tim.

by hijukal

I agree with the other two opinions...

Just don't forget to use "Randomize"!

This discussion is closed to new replies.