Installation #3
-
Hi there. I am a real novice so bare with me. Can I install your randomiser into an installation of either MoodeAudio (or rRune or other you know of) on raspberry pi hardware? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I have no experience with any of the software you speak of. I have been using MSAlgo in connection with all sorts of games and the giving out training materials. |
Beta Was this translation helpful? Give feedback.
-
If upon starting, "the very same songs are always played", and not just some occurrences of repeats, it's likely not the shuffle algorithm but the random (PRNG) function. All shuffle algorithms are to some degree dependent on a system random function. As a PRNG function is not random at all, it must be initialized with a random seed value based on an independent event. |
Beta Was this translation helpful? Give feedback.
-
So cool Ron. Thank you for answering my query and taking the time to think
about it.
I will try what you suggested. It is worth a go.
I may have incorrectly stated 'exact same songs' a little. It is more the
very same songs in a differnent order from the same artists/album. Some
artists/albums never play at all. It the played songs always come from the
same album.
Many thanks again for your time and consideration
Lou
no logo
…On Wed, 5 Apr 2023, 08:26 Ron Miller, ***@***.***> wrote:
If upon starting, "the very same songs are always played", and not just
some occurrences of repeats, it's likely not the shuffle algorithm but the
random (PRNG) function. All shuffle algorithms are to some degree dependent
on a system random function. As a PRNG function is not random at all, it
must be initialized with a random seed value based on an independent event.
When you start the player or switch to ‘shuffle’ you could reseed the PRNG
(e.g. using ‘srand()’) with the value of the system millisecond clock (not
automatically from 'cron').
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A23UG2Z62V7U5ZP4VFMMDJLW7SNY3ANCNFSM6AAAAAAWB2FBXM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
If upon starting, "the very same songs are always played", and not just some occurrences of repeats, it's likely not the shuffle algorithm but the random (PRNG) function. All shuffle algorithms are to some degree dependent on a system random function. As a PRNG function is not random at all, it must be initialized with a random seed value based on an independent event.
When you start the player or switch to ‘shuffle’ you could reseed the PRNG (e.g. using ‘srand()’) with the value of the system millisecond clock (not automatically from 'cron').