Modding:core/functions:resolverange (0.9.9.7)

From DoomRL Wiki

Jump to: navigation, search
resolverange
integer resolverange(integer range)
integer resolverange(array range)


Accepts an array in the form of { min, max }. Returns an integer between the passed min and max. The end points are inclusive; resolverange( {3, 6} ) can return the values 3, 4, 5, or 6. An integer can also be used as an argument in which case the function will simply return the argument used.

Personal tools