🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: fj.lang.visualbasic
1 messages
1 total messages Started by rick Wed, 02 Sep 1998 00:00
Type mismatch err in Random
#119
Author: rick
Date: Wed, 02 Sep 1998 00:00
16 lines
1043 bytes
i need to pick 100 random numbers and i don't want to type each letter for
a random like A=RND, B=RND.... I tried this:
Dim I, B
 For T = 1 To 100
        For I = 1 To TURN
            Randomize      
	       B(I) = Int((3 * Rnd) + 1)
        Next I

For I= 1 to 100
	Print B(I)
Next I

I get        B(I)<Type Mismatch>     as an error 13

Please help			trepid@bluegrass.net
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads