Im trying to write a program which simulates ten coin tosses and returns the results to the user .can anyone help please!!
Imports System.IO
Imports Microsoft.VisualBasic.ControlChars
Public Class Form1
'write a program that simulates 10ncoin tosses using Random Number generator + Returns the results to the user.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
Function RandomNumber(ByVal Lowerbound As Long, ByVal Upperbound As Long)
Randomize(3)
RandomNumber = Int(Rnd() * Upperbound) + Lowerbound
If RandomNumber = 0 Or 2 Then
TextBox1.AppendText("H")
ElseIf RandomNumber = 1 Or 3 Then
TextBox1.AppendText("T")
End If
End Function
End Class