Old 1st October 2006, 09:38   #1
Junior Member
Join Date: Sep 2006
Posts: 16
Shuffle - random number generator


Here is cool link to random number code..


Next play item can sometimes be predicable.
jaredsullivan is offline   Reply With Quote
Old 1st October 2006, 10:02   #2
Join Date: Sep 2003
Posts: 27,873
nothing can ever be truly random on a PC (well apart from the crashes) and hence why that code is marked as 'psuedo-random' and by definition of random, you can have runs of the same thing multiple times, it's not until you get to an infinite number of plays that it should all balance but that's just not feasible so you have to get on with things as they are

DrO is offline   Reply With Quote
Old 6th October 2006, 14:38   #3
(Forum King)
k_rock923's Avatar
Join Date: Jul 2003
Location: /bin/bash
Posts: 7,850
Send a message via AIM to k_rock923
Using a time seed is usually random enough for most purposes, though.

Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.
k_rock923 is offline   Reply With Quote
Old 10th October 2006, 12:06   #4
The Big Bad Boots
(Forum King)
Too-DAMN-Much's Avatar
Join Date: Dec 2003
Location: 420 Big Buds Way
Posts: 3,964
Send a message via Yahoo to Too-DAMN-Much
why not just have your random generating algorithm use a command to take the last song played out of the list for X amount of plays of anything else?

I hate everyone, so you don't have to.
Too-DAMN-Much is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Community Center > The Bitchlist

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump