50 likes | 181 Views
Visual Basic 13. Dr. Al-Mothana Gasaymeh. if statement جملة اتخاذ القرار. If condition Then Statement (S) Else Statement (S) End if Or If condition Then Statement (S) End if. الأرقام العشوائية. Rnd : Random number between 0-1
E N D
Visual Basic 13 Dr. Al-Mothana Gasaymeh
if statement جملة اتخاذ القرار If condition Then Statement (S) Else Statement (S) End if Or If condition Then Statement (S) End if
الأرقام العشوائية • Rnd : Random number between 0-1 • Rnd *10 :Random number between 0-9 • Int(Rnd *10 ): integer random number between 0-9 • Dim num as integer Num= Int (Rnd*10) Label1.Caption= Num