Homebrew How to generate random numbers in Wee Basic?

childishbeat

New Member
Newbie
Joined
Jun 19, 2015
Messages
2
Reaction score
2
Trophies
0
Age
26
XP
129
Country
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).
 

Attachments

Last edited by childishbeat,

Site & Scene News

Popular threads in this forum