Register and join over 40,000 other developers!
Salis is an artificial life simulation, based on Tom Ray's Tierra.
nino - Apr 12 2018 09:13 AM
How do you choose best company for android app development?
Amyrivers - Oct 17 2017 01:24 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Getting Random Numbers From Listslists
1 reply to this topic
Posted 01 October 2015 - 09:57 AM
So I have lists
list1 = [ 4, 6 ]
list2 = [ 2, 6 ]
list3 = [ 1, 8 ]
and I want the random module to be able to randomly pick a number between the two items in each of these lists.
Also, let's say we use list 1 [ 4,6 ]. I want the random generator to pick the highest number out of 2.33 attempts. What I mean is I want there to be 2 guaranteed attempts at picking the randomly selected highest number, and I want there to be a 1/3 chance that the program will try a third attempt.
THANKS FOR THE HELP!!!!!!!!!!