Folks,

I have come late to this conversation, presumably because I live in a 
different timezone, so please excuse me if it was addressed in the details.

A Couple of points


   - The use of appropriate seeds is a well known way of making something 
   effectively random. Surely once we have it the last saved time + the 
   current time would be effective seeds. this would initiate a different 
   pattern every load, and every time the random function is used.
   - For a one shot random items this may not be relevant but if one really 
   wants to shuffle a list the whole list should be shuffled and then 
   deterministically selected, or each time something is randomly selected 
   remove it from the list of potential items otherwise a pure random process 
   will return to the same item before all items have being see on average 50% 
   of the time.  

Regards
Tony

On Thursday, September 12, 2019 at 5:39:15 AM UTC+10, Mohammad wrote:
>
> Thanks Matt!
>
> On Wednesday, September 11, 2019 at 11:56:31 PM UTC+4:30, Matthew Lauber 
> wrote:
>>
>> All, I've updated my PR (
>> https://github.com/Jermolene/TiddlyWiki5/pull/3712) to be always 
>> deterministic, using first the operand (so you can trigger updates with 
>> buttons) next a seed set to the time at startup by startup tiddler, falling 
>> back to a static/hardcoded seed.
>>
>> @Jeremy, there's a question on that PR for you regarding where you want 
>> that startup tiddler to belong in the core.  
>>
>> Here's hoping we can get this over the finishline for 5.1.22!
>>
>> Matt
>>
>> On Wednesday, September 11, 2019 at 3:47:38 AM UTC-4, Mohammad 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?
>>>
>>>
>>> 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/39a98042-1fc4-4a7a-a4eb-7976649f1982%40googlegroups.com.

Reply via email to