So if I had three possibilities: A, B, C
and I assigned them the weights: .01,.8,.19
From a sample of the functions output, I would expect to see mostly A, a few B, and maybe one C
The language I'm using is both obscure and irrelevant. The tools I have to use are basic arrays, (Not an arraylist or a vector or anything like that) and a GetRandomReal() function. Also the primitive types real,int,bool
Anyone have any ideas? If you want to write an example, I don't care what language its in as long as its fairly popular and not incredibly difficult to understand.
This post has been edited by wd40bomber7: 22 May 2012 - 03:31 PM

New Topic/Question
Reply




MultiQuote








|