...
Code Block | ||||
---|---|---|---|---|
| ||||
str = random:word() |
quote (fortune)
Returns a random quote from www.iheartquotes.com. See the api for possible parameters
Code Block | ||||
---|---|---|---|---|
| ||||
qstr = random:quote({"source":"math"}) |
photo
Returns a random photo from google picasa's public api. See the api for possible parameters
Code Block | ||||
---|---|---|---|---|
| ||||
str = random:photo({"q" : "kitten"}) |
uuid
Generates a UUID
Code Block | ||||
---|---|---|---|---|
| ||||
str = random:uuid() |
...
Note that there is no method for generating a random number in this library. That is available from math:random()