Hi everybody. I've succeeded in creating a function that picks a random sequence of specific numbers from an array.
The order of the numbers in the array are sorted/randomised using rand() and a basic sort function. Then I use rand() to generate a value for the array pointer in a for loop, to select a pseudo-random element.Problem is: I want to reduce the chance of a specific number being randomly picked.
I realised that the way I've picked the series so far is probably a bit backward, seeing as there's probably a library of functions that does stuff like this somewhere: you pass this function some values, it randomly orders them; it can also pick a biased order favouring certain numbers.
Figured it's better to ask here first before trawling the net.
Thanks in advance




