Hi Jeremy! I understood why random filter could affect the performance! Thank you for clarification!
Best wishes Mohammad On Wed, Sep 11, 2019 at 2:40 PM Jeremy Ruston <[email protected]> wrote: > Hi Mohammad > > On 11 Sep 2019, at 08:47, Mohammad Rahmani <[email protected]> > wrote: > > As there is no random filter (I expect to have it with math operators) in > TW core, is it possible using machine clock and TW 5.1.20+ math ops create > a macro to generate random numbers? > > > This has come up before, it might be helpful to dig up the old references. > > The reason there is not a simple [random[]] operator is that filter > operators are supposed to be deterministic: they must return the same > results for the same inputs, regardless of when they are called. This > property is required for the refresh mechanism to operate correctly. In > particular, using a non-deterministic filter with the list widget will > cause thrashing on every refresh cycle. > > To make it work, one needs to add a seed operand, and initialise that > value via a new action widget that can assign a random value to a tiddler. > I think somebody made a plugin a few years ago to do this. > > Best wishes > > Jeremy > > > > > Best wishes > Mohammad > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMA6b-EtuP4KjSWfir9jy2eAh65c-QwnvTL9kQH43qYNCw%40mail.gmail.com > <https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMA6b-EtuP4KjSWfir9jy2eAh65c-QwnvTL9kQH43qYNCw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/3DDED8BE-E801-4568-96A6-878A3B88594F%40gmail.com > <https://groups.google.com/d/msgid/tiddlywiki/3DDED8BE-E801-4568-96A6-878A3B88594F%40gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMCdWJYUyOvxd0MY4pe7EUHM04jKC2GUp9giBF1o8Q6kVw%40mail.gmail.com.

