How can I generate n random integers at i interval having a bias placed on a number if is not picked after a duration of t time?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This code won’t compile, but you get the gist of the algorithm I have in place. It might not be particularly efficient, but it gets the job done and you will have to tailor it to your needs. Namely the variables
n,timer(create a timer),timerTicksand the methodChooseRandomNumber.