by AlaskaStar » Sun Sep 02, 2007 3:10 am
Use this:
10 @Rand=A
20 A(10)=B
30 If B<2.5 Then Goto 100
40 If B>2.5<5 Then Goto 200
50 If B>5<7.5 Then Goto 300
60 If B>7.5<10 Then Goto 400
100 Play (SongFilename1.SND)
110 GOTO 10
200 Play (SongFilename2.SND)
210 GOTO 10
300 Play (SongFilename3.SND)
310 GOTO 10
400 Play (SongFilename4.SND)
410 GOTO 10
The above is a general syntax command line similar for Apple, GwBasic, QBasic, Basica, DOS Batch File, or anything else applied. uses similar in the TI-81, TI-82, and TI-83 Texas Instrument Calculators.
Oh! and don't have too much fun with this.
the Rand statement means to generally generate a RANDOM NUMBER. this number will be LESS THAN ONE. it will be like 0.125 or 0.750, and will usually be in divisions of 8ths from 1. this gives you a spread of 8 randoms. they will almost never be the same random number output.
AlaskaStar
"Do we exist, or are we just an existence?"