Thanks Mark S. A query, does "<$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" variable="num" >" mean i'd have to literally enter 4000 numbers? If so, that looks like asking for trouble.
Could it not be calculated from a spawned random? I wasn't actually thinking of using Tobias' solution because it seemed more focused on Tiddlers that exist. What I need is only random creation of a number between 0001 and 4000 to help create an external file link that is transitory. Best wishes Josiah On Friday, 14 July 2017 18:27:34 UTC+2, Mark S. wrote: > > I assume you're thinking of using Tobias' random solution ? His is based > on selecting tiddler titles. Haven't tried it, but assuming you could > construct a massive filter like: > > \define reimage() C:\mypath\fw_$(num)$.jpg > <$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" variable="num" > > <$image source=<<reimage>>/> > </$list > > which could be used to build fw_0001.jpg, fw_0002.jpg, fw_0003.jpg ... > > Not sure what the performance would be like with 4000 items, or if the > parser would break. > > Or if you had a data dictionary with the file names in it, or even just > numbers 0-4000 you could used the indexes operator. > > Mark > > > > On Friday, July 14, 2017 at 3:48:41 AM UTC-7, @TiddlyTweeter wrote: >> >> Ciao tutti >> >> This is an early query to see if anyone can confirm whether what I will >> need will be possible or not. >> >> If it sounds like it is I can lay out the use case in more detail. >> >> By way of background, I have a project with multiple (external) images. >> When a visitor comes to the TW online I want them to see ONE randomly >> selected image presented via a modal. >> >> Important to understand is that *this is NOT a randomly selected Tiddler* >> (which a gizmo by Tobias Beer does well already). >> >> Rather, the modal initiation should dynamically create a path to a >> randomly selected external graphic file that the modal displays (obviously >> only within the range of what is available). The range for the image to >> randomly pick is currently "0001" to "4000"---with full-file names like: >> "fw3022.jpg". >> >> (My thinking behind this is to NOT burden the TW with 4,000 tiddlers it >> doesn't need to be a lightweight Lightbox). >> >> I hope this is clear enough. >> >> Please ask me to clarify if it is not. >> >> Many thanks >> Josiah >> > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9674af2f-b765-4f9c-8d1e-4b6654376695%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.