Kiki Terminal
Home
Showcase
Share Script
Tutorials
Dark
Dark
Home
Showcase
Share Script
Tutorials
Kiki-Terminal
Enter Kiki Script:
// Script: RandomNumberDemo // Demonstrates the 'Get random number' command. Begin Story Say "Let's generate a random number between 1 and 10!" Wait 1 Get random number between 1 and 10 into myRoll // You could also try: Get random number up to 10 into myRoll Shout "The random number is: " & myRoll If myRoll is bigger than 7 then Say "That's a high roll!" Otherwise If myRoll is smaller than 4 then Say "That's a bit on the low side." Otherwise Say "A nice, average roll." Finish If Finish If Say "--------------------------" Say "Let's try getting a random number up to 100:" Get random number up to 100 into bigRandom Say "The big random number is: " & bigRandom The End
Run Script
Save Script
Load Script...
Output: