Hi whatever,
Things could be rather simple if fET were not (always) the tool of
choice.
<script>
var a=[],i,max=10,n=0,out='',t,tags,
tids=store.getTiddlers("modified","excludeLists");
for (t in tids) {
tags=tids[t].tags;
if (tags&&tags.contains('$1'))a.pushUnique(tids[t].title,true);
}
while(n<max&&a.length>0){
n++;
i=Math.floor(Math.random()*a.length);
out+="*[["+a[i]+"]]\n";
a.splice(i,1);
}
return out;
</script>
Simply put this into a tiddler, call it "random10" and then use the
tiddler macro like this...
<<tiddler random10 with: article>>
Cheers, Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.