This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips [2018/02/16 11:50] omid [Examples] |
tips [2018/02/16 12:01] (current) omid [General Tips] |
||
---|---|---|---|
Line 3: | Line 3: | ||
===Generating Random Numbers=== | ===Generating Random Numbers=== | ||
- | If you need to generate a random number in your script you can use the Variable Node. You can easily drag and drop a variable from variable menu into the variable name field, or type in your variable name. Then the Randomize button will on variable node. You can generate a random number between 0 and 100 by clicking on this button. | + | The predefined variable ''{random0to1}'' can be used to generate a random number. You can use it in a variable node, or in a dialogue. If you need to assign a random number to a variable you can use the Variable Node. You can easily drag and drop a variable from variable menu into the variable name field, or type in your variable name. Then the Randomize button will on variable node. You can generate a random number between 0 and 100 by clicking on this button. |
====Examples==== | ====Examples==== | ||
- | {{::variablenode.jpg?200}} | + | {{::variablenode.jpg?200}} → {{::variablenode2.jpg?180|}} |