Version: 3.1.4 (using KDE 3.1.4) Installed from: SuSE Compiler: gcc version 3.3 20030226 (prerelease) (SuSE Linux) OS: Linux (i686) release 2.4.20-tcn I setup the wallpaper changer with a directory holding about 1.500 images - which I quite a lot IMO. However, often pictures are shown I already saw while I yet haven't seen the very most of the rest.
did you figure, it's against every logic that there are lotto wins? The code does rand() % count which is the standard way to get a random number in [0, count[
1) use multiple rand()s 2) use the pgp/gpg-like approach and generate random values by using mouse movement, keyboards input and the system time.
whatever random implementation you use, you can't exclude that you see the same picture after the second switch (it's random after all). The only way around this is creating a random list on startup and play that one by one.
For sure, but I can exclude that I do see the same pictures all the time and most of the pictures never or very seldomly. This bug report is about making it *more* random than it is right now.
Subject: Re: random wallpaper changing algorithm not random enough > For sure, but I can exclude that I do see the same pictures all the time and most of the pictures never or very seldomly. Stephan is correct, the only way to do this is to randomize the list ONCE and then go through it. This is the proper implementation of randomized wallpapers anyway, not "using random to pick the next one each time".
Bug closed. Kdesktop is no more mantained.