Sometimes an opportunity presents itself where you have two answeres and it doesn't really matter which one you use. A good example could be find b in the y=mx+b formula to determain the equation of line between two points. Or in my example, asking "Which came first, the chicken or the egg?"
VB.Net Code:
'Here I just store two answeres Dim str() As String = {"The Chicken", "The Egg"} 'Here I get the millisecond Dim timeNow As Integer = DateTime.Now.Millisecond 'Here I use the Mod operator to check if the millisecond is odd or even If CBool(timeNow Mod 3) Then MessageBox.Show(str(0), "Which came first?") Else MessageBox.Show(str(1), "Which came first?") End If


Reply With Quote

