Discussion Locked
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
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 tony3198
Poster rated this answer
Must be for school. This is a very basic program. Just try!
by tony3198
Poster rated this answer
by hijukal
I agree with the other two opinions...
Just don't forget to use "Randomize"!
by tony3198
Poster rated this answer
by tony3198
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
0 helpful
1 reply
1 helpful
3 replies
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies