Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeConfluence
languagejavascript
str = random:word()

 

quote (fortune)

Returns a random quote from www.iheartquotes.com. See the api for possible parameters

Code Block
themeConfluence
languagejavascript
qstr = random:quote({"source":"math"})

photo

Returns a random photo from google picasa's public api.  See the api for possible parameters

Code Block
themeConfluence
languagejavascript
str = random:photo({"q" : "kitten"})

uuid

Generates a UUID

Code Block
themeConfluence
languagejavascript
str = random:uuid()

...

Note that there is no method for generating a random number in this library.  That is available from math:random()