Register and join over 40,000 other developers!
C++ pointers, references and Dynamic Memory... oh my :(
Siten0308 - Jul 31 2018 02:08 PM
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!!!!!!!!!!