Hi Tobias Just to be clear, a "[random[]]" filter is a dead duck with the current architecture
> What is the benefit of that over a [random[n]] filter? That it is possible for it to work! A random filter cannot work. > First of all, I think there are usecases where a new random set at each refresh is actually desired. I don't think so. A refresh cycle can happen at any time, potentially many times a second. > Where that is not the case, does the DOM get entirely replaced or are states preserved upon refresh? The DOM is selectively updated, with parts of the tree being replaced as required. It is not possible to store state in the DOM. > What is important is that each instance of a [random[]] filter or a filter making use of a random number needs to persist the initial draw until a page reload. We can use the stored random number as a seed for generating the numbers that we need. We can also provide a "throw the dice" button that generates a new random number. Perhaps it would be helpful if I understood your underlying use case. What are you trying to achieve with random number generation? Best wishes Jeremy On Mon, Nov 17, 2014 at 9:37 AM, Tobias Beer <[email protected]> wrote: > Widgets can be redrawn at any time, if the core detects changes in the >> tiddler store. So whenever a tiddler, or a section of a tiddler is redrawn >> and it contains the [random[]] filter, you'll get a new result. But that's >> not what you want. >> > > Then that means that such a "random state" is required for every instance, > without the user necessarily being required to specify it. The question of > whether or not there'd be a *[random[]]* filter seems independent of that > requirement to me. > > Best wishes, Tobias. > -- Jeremy Ruston mailto:[email protected] -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

