mIRC Homepage
Posted By: Simo anyway to make this shorter - 06/08/22 12:18 PM
anyway to make this shorter :


Code

testext { echo -a $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z))  $Regsubex($Str(-,$r(5,20)),/-/g,$Rand(a,z)) }



random words between 5 and 50 with random characters between 5 and 20
Posted By: maroon Re: anyway to make this shorter - 06/08/22 02:51 PM
he ended up being satisfied with
//echo -a $regsubex($regsubex($str(- $+ $chr(32),$r(5,50)),/-/g,$str(-,$r(5,20))),/-/g,$r(a,z))
If this is used in an /echo which discards consecutive spaces, then can skip the $+ preceding the $chr(32)
Posted By: Simo Re: anyway to make this shorter - 07/08/22 09:06 PM
thanks maroon
© mIRC Discussion Forums