This command will call itself until wurd is not found and track the number of times it s found:
ui stat monitor("Count:",#count)
comment("Counter to see how many times the command calls itself")
set(#count,0,"Global")
Recursive Command Name()
define Recursive Command Name {
comment("Some random loading code so that it can eventually exit")
set(#num,$rand(1,1000),"Global")
comment("24/1000 chance of not being \"wurd\"")
if($comparison(#num,">=",25)) {
then {
load html("wurd")
}
else {
load html($random text(10))
}
}