Small Basic – Random Numbers

Random numbers can be very useful in your Small Basic games.  They can be used to make the game play vary from one game to the next. The Small Basic keyword to get a random number is Math.GetRandomNumber(maxNumber).  It will return a random integer between 1 and the input value maxNumber. Here are a few…

6

What are the 14 Keywords of Small Basic?

In the Small Basic FAQ, it mentions there are 14 keywords: What are the unique features of the Small Basic language? SizeThe Small Basic language consists of just 14 keywords. ========== Of the 14 keywords, we’ll cover 16 of them in this blog post: AndElseElseIfEndForEndIfEndSubEndWhileForGotoIfOrStepSubThenToWhile ========== Examples…  If, Then, EndIf If (Clock.Hour < 12) Then …