Warcraft III resources & community, 2003–2006 · archived

randomString

not rated
Submitted by Aiursrage2kText Parsing0 downloads
Creates a random string from a min to a max.
requires AsciiIntegerToChar

Source

function randomString takes integer min, integer max returns string
    local integer i = 0
    local string result = ""
    local integer sz = GetRandomInt(min,max)
    loop
      exitwhen i > sz
      set result = result + AsciiIntegerToChar(GetRandomInt(32,127))
      set i = i + 1
    endloop
    return result
endfunction

Comments

0

No comments.