i have is there an easier way to get more info in or easier to access it with so many lines of code? help plz

Code: Select all
SELECT CASE x
CASE 1
GOSUB Prowler
CASE 2
GOSUB Jujuman
CASE 3
GOSUB Vypor
CASE 4
GOSUB Livewire
CASE 5
GOSUB Rouge
CASE 6
GOSUB Manticore
CASE 7
GOSUB Kouger
CASE 8
GOSUB Jackhammer
CASE 9
GOSUB Ronin
CASE 10
GOSUB Valient
CASE 11
GOSUB Irondeath
CASE 12
GOSUB Raptor
END SELECT
Code: Select all
SELECT CASE x
CASE 1: GOSUB Prowler
CASE 2: GOSUB Jujuman
CASE 3: GOSUB Vypor
CASE 4: GOSUB Livewire
CASE 5: GOSUB Rouge
CASE 6: GOSUB Manticore
CASE 7: GOSUB Kouger
CASE 8: GOSUB Jackhammer
CASE 9: GOSUB Ronin
CASE 10: GOSUB Valient
CASE 11: GOSUB Irondeath
CASE 12: GOSUB Raptor
END SELECT
Code: Select all
Using a 10 to 20 example:
randNum = INT(RND * (20 - 10 + 1)) + 10
randNum = INT(RND * 11) + 10
Code: Select all
randNum = INT(RND * (-2 + 12 + 1)) - 12
randNum = INT(RND * 11) - 12
Code: Select all
PRINT "Do you want to play again? (Y/N): "; ' use semicolon at end
DO
again$ = UCASE$(INKEY$) ' converts keypress to uppercase letters
LOOP UNTIL again$ = "Y" OR again$ = "N"
PRINT again$ ' prints at end of question above.