Jump to content

Talk:Pseudo-random numbers/Xorshift star: Difference between revisions

 
Line 5:
 
Fpr languages '''with''' these types, this '''would not''' be an idiomatic solution. Please use those types if they are a part of your language rather than follow the Python masking route, thanks. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 10:58, 13 August 2020 (UTC)
 
== Check for non-zero seed? ==
 
I notice that the pseudocode specifically mentions:
u64 state /* Must be seeded to non-zero initial value */
yet most of the entries not only ''allow'' a seed of 0, but in fact ''default'' to a seed of 0. If you're expecting good randomness with a seed of 0, you're gonna have a bad time. I hesitate to mark them all as wrong as that is just a comment in the pseudocode, not a specific task requirement, but I wonder if it should be? (The Raku entry specifically disallows zero (and negative numbers) as a seed value) --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 18:57, 13 August 2020 (UTC)
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.