I am a little stuck with a simple Question: how to generate a simple random Boolean?
If am correct, a Boolean 0 = false and 1 = true
, but how to suse that?
Current code:
Dim RandGen As New Random
Dim RandBool As Boolean
RandBool = Boolean.Parse(RandGen.Next(0, 1).tostring)
CInt(Math.Floor(Rnd() * 2))
should produce 0 or 1 which you could then use