Types

Blitz3D Forums/Blitz3D Beginners Area/Types

I have a question about types:

Type bob
   Field hi
End Type

count=0

Repeat
   a=Input("Number")
   a.bob = New bob
   a\hi = Rnd(8,79)
   count=count+1
Until count=3

While Not KeyHit(1)
   access=Input("What would you like to access?")
   Print access\hi
Wend


Would this be possible - say they entered 1, 3, 4. Then they called up 3 would it give them the random number? I tried it out and it came up with errors so would there be any other way of doing this?