set.object(emmo)=1
set.$lifeDays=random(integer)
for $day=1 to $lifeDays
call.function.WakeUp(emmo)
call.function.Survive(emmo)
call.function.Sleep(emmo)
$day=$day+1
if $day=$lifeDays then
set.object(emmo)=nothing
delete.object(emmo)
else
next
dump.memoryLog
exit