User Tools

Site Tools


using_random
% simple code to randomly pick a string to be written to screen

{
  @word rand
  @str(5) messages

  messages(1) = "hello"
  messages(2) = "hola"
  messages(3) = "hail"
  messages(4) = "hell o"
  messages(5) = "hug"

  rand = random[4]+1
  cout[messages(rand)]
}
using_random.txt · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki