Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
en:create:php [21.12.2014 22:53] – admin | en:create:php [09.01.2015 12:41] – admin |
---|
===== Variables ===== | ===== Variables ===== |
| |
The word //function// derives from mathematics. Although the command ''question()'' has not much in common with functions. But other functions can actually compute things. For example, the command ''[[functions-random#random|random()]]'' computes a random number. | The word //function// derives from mathematics. Although the command ''question()'' has not much in common with functions. But other functions can actually compute things. For example, the command ''[[:en:create:functions:random|random()]]'' computes a random number. |
| |
The function ''random()'' expects two parameters: the smallest and the largest number that can be drawn. ''random(1,6)'' will draw a number between 1 and 6. We can use this number, e.g. to choose a stimulus randomly. | The function ''random()'' expects two parameters: the smallest and the largest number that can be drawn. ''random(1,6)'' will draw a number between 1 and 6. We can use this number, e.g. to choose a stimulus randomly. |