And it does work as intended. But i am seeing that it repeats one or two tiddler a lot. At first i thought maybe my tiddlers were not enough in numbers but then i have around 25 tiddlers and it still repeats a couple initial tiddlers it picks up, a lot.
Could you suggest anything for this?
Thank you for your code.
Math.floor(Math.abs(Math.sin(seed++)) * currentIndex);
<ol>
<$list filter="a b c d e f +[shuffle[\x04\x09\x03\x08\x03\x0e]]">
<li><<currentTiddler>></li>
</$list>
</ol>
- a
- d
- e
- b
- c
- f
But i am seeing that it repeats one or two tiddler a lot. At first i thought maybe my tiddlers were not enough in numbers but then i have around 25 tiddlers and it still repeats a couple initial tiddlers it picks up, a lot.
Dang! I go to sleep for 8 hour and your guys pick apart my code. Seriously though, thanks guys. I'll take a look at improving the randomness of my shuffle operator. I seem to recall not using the javascript math.random function because I wanted to be able to seed the function and get a list ordering that only changed when I clicked a button. I'll see what I can find for that.