Generate random text (string) using given length and keyspace

random:text(INT $length, STRING $keyspace="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") : STRING

random:text(20)
#=> "iu2EkBGY1OWEgsfPlWUg"

random:text(0)
#=> ""

random:text(20,"abc")
#=> "bcaaccacbabbcccbcbcb"

Copyright ©2013-2022 SunSed®. All rights reserved.