Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Pick-random-element/FreeBASIC/pick-random-element.basic
Normal file
12
Task/Pick-random-element/FreeBASIC/pick-random-element.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Dim a(0 To 9) As String = {"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"}
|
||||
|
||||
Randomize
|
||||
Dim randInt As Integer
|
||||
|
||||
For i As Integer = 1 To 5
|
||||
randInt = Int(Rnd * 10)
|
||||
Print a(randInt)
|
||||
Next
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue