Maybe this is a noob-in-stats question, and sorry if it is, but:
I have written a random series generator and I'd like to be able to control *precisely* the relative percentage of occurences of each possible value over the total number of samples generated.
So far I'm _almost_ there, except that I almost always end up with the final 10-20 "random" values being the same (because of the way I've written the code for this RNG).
For instance, say I have a set of 3 possible values: A,B and C.
I would like to be able to generate large random series (eg B-C-C-A-B-A-A-B etc...) where I can control exactly how many A's, B's and C's will be hit (eg 30%,15%, and 55%).
While avoiding ending the series with say 25 A's: A-A-A-A-A-A-A-... (not so "random" ^^) like it does now.
Thanx in advance for any help, will save me some time to maybe work on some of the intersting stuff posted here and deliver some result...
I have written a random series generator and I'd like to be able to control *precisely* the relative percentage of occurences of each possible value over the total number of samples generated.
So far I'm _almost_ there, except that I almost always end up with the final 10-20 "random" values being the same (because of the way I've written the code for this RNG).
For instance, say I have a set of 3 possible values: A,B and C.
I would like to be able to generate large random series (eg B-C-C-A-B-A-A-B etc...) where I can control exactly how many A's, B's and C's will be hit (eg 30%,15%, and 55%).
While avoiding ending the series with say 25 A's: A-A-A-A-A-A-A-... (not so "random" ^^) like it does now.
Thanx in advance for any help, will save me some time to maybe work on some of the intersting stuff posted here and deliver some result...

