mIRC Home    About    Download    Register    News    Help

Print Thread
anyway to make this shorter #270622 06/08/22 12:18 PM
Joined: Nov 2021
Posts: 32
Simo Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2021
Posts: 32
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

Re: anyway to make this shorter [Re: Simo] #270623 06/08/22 02:51 PM
Joined: Jan 2004
Posts: 1,802
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,802
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)

Re: anyway to make this shorter [Re: maroon] #270625 07/08/22 09:06 PM
Joined: Nov 2021
Posts: 32
Simo Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Nov 2021
Posts: 32
thanks maroon