Talk:Rand

Revision as of 11:31, 18 February 2009 by imported>SirKarl (Between or between and?)

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?

Return to "Rand" page.