The Daily Click ::. Forums ::. Klik Coding Help ::. Random number bias
 

Post Reply  Post Oekaki 
 

Posted By Message

Dave S.



Registered
  26/09/2003
Points
  924
7th June, 2020 at 07/06/2020 13:43:33 -

Say I have the numbers 1 to 7 and want to generate a random sequence of these numbers, of a line length between 4 and 8. Is there a way to give certain numbers more chance to appear in the list than others? Ideally, the bias would be controllable by the user on every turn. I hope this makes sense

 
n/a

Dave S.



Registered
  26/09/2003
Points
  924
8th June, 2020 at 08/06/2020 11:58:22 -

Actually, don't worry, as I have found an old ZX Spectrum program (written by my brother in basic) that will do more or less the same thing. It is an early stage experiment.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click