Difference between revisions of "Talk:Rand"
Jump to navigation
Jump to search
imported>Innominate |
imported>SirKarl (Between or between and?) |
||
Line 9: | Line 9: | ||
Set randNum To rand 0 [max] | Set randNum To rand 0 [max] | ||
player.additem <item id> randNum | player.additem <item id> randNum | ||
== Between or between and? == | |||
A short question dose rand 1 10 return any number bigger than 1 and less than 10 or does it also include 1 and 10? |
Revision as of 11:31, 18 February 2009
How do I add a random number of items with this script?
Like player.additem 0000000f <rand function>
How would i do that?
- Easily. Although you may not be able to use this in the console, and the example you gave looks like it was a console command, not a script.
Short randNum Set randNum To rand 0 [max] player.additem <item id> randNum
Between or between and?
A short question dose rand 1 10 return any number bigger than 1 and less than 10 or does it also include 1 and 10?