Discuss this page on this page's [[itmCreateRandom Talk Page|Talk Page]] === itmCreateRandom === See [[http://xelerus.de/index.php?s=functions&function=36|itmCreateRandom at Xelerus]] ^ Syntax | (itmCreateRandom criteria levelDistribution) -> item | ^ Arguments | criteria: A string representing the criteria of the item you want to create. | ^ | [[legend#level_distribution|levelDistribution]]: A formatted string specifying what rarity of items will appear at what level. | ^ Returns | item: A itemStruct representing the randomly picked item. | ^ Category | [[create functions|create]], [[item functions|item]], [[random functions|random]] | ^ Description | Creates a random item matching the criteria and the string. | Useful for creating a item at random. * Please note that the frequency in the string is the frequency of the appearing level and not the frequency of the items. * Moreover itmCreateRandom doesn't pick up items with frequency "notrandom" === Example === (itmGetName (itmCreateRandom "s" "----- --c--")) Returns the name of a random shield of level 8. Return to [[:Functions]] list