Are there any working ways to generate random numbers in Wee Basic*? I'm trying to make a guess the number game in Wee Basic, but I can't find any working ways to generate a random number in Wee Basic anywhere. In case that'll help you to give me answers to this question, here's my code so far (that code is also attached to this post as a txt file that can be run and edited in Wee Basic):
let correct=0
let number=10
while correct=0
input guess
if guess=number
let correct=1
endif
if correct=0
print 1 "Incorrectly guessed!"
endif
wend
print 1 "Correctly guessed!"
end
*I'm running the Nintendo DS homebrew application Wee Basic on a New Nintendo 3DS via TWiLightMenu++ in the R4 theme, (both Wee Basic and TWiLightMenu++ run correctly like that).
let correct=0
let number=10
while correct=0
input guess
if guess=number
let correct=1
endif
if correct=0
print 1 "Incorrectly guessed!"
endif
wend
print 1 "Correctly guessed!"
end
*I'm running the Nintendo DS homebrew application Wee Basic on a New Nintendo 3DS via TWiLightMenu++ in the R4 theme, (both Wee Basic and TWiLightMenu++ run correctly like that).
Attachments
Last edited by childishbeat,







