Something that may work for the original question of opening a random 
tiddler when a button is pressed, and something that I would like to see if 
possible, is a simple RNG that gets called by a message (like the 'throw 
the dice' button that can be called by a widget message). That way to 
implement the 'open a random tiddler' function you initialize the random 
value into a state tiddler, and then each time you click the button it 
opens a tiddler based on the current value in the tiddler and updates the 
value for the next time. Or updates the value and then opens the tiddler, I 
am not sure how the widget messages are executed so the order may matter.

Some interface like <$button><$action-sendmessage $message='tm-rng' 
$state=<<placeToStoreNumber>> $range=[lowerEnd, upperEnd] 
$stepsize=someValue/>Generate Values</$button> could open interesting 
options for new uses. A parameter that allows you to select the 
distribution would be interesting, but probably outside the current scope 
of TW.

On Monday, October 6, 2014 5:37:00 PM UTC-6, Philip Coltharp wrote:
>
> I envision a widget defined like so..  a list in side a button like so.  ( 
> Imagine this was put in a tiddler on http://tiddlywiki.com/)
>
> <$button to="<$list filter="[tag[Widgets]] pick-at-random="1">">Go To 
> Random Widget Tiddler</$button>
>
>          *OR*
>
> <$button to="<pick-at-random from="<$list filter="[tag[Widgets]]">">">Go 
> To Random Widget Tiddler</$button>
>
> The ideal is to get a button to send a user to a tiddler picked at random 
> from a list.
>
> I could do this in Classic Tiddlywiki but I want to learn Tiddlywiki5. 
>  How might one do this in TW5 differently than in TWC?
>
>
>

-- 
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.

Reply via email to