0
How can you randomly return an element from a list? "rand()" is uniformly distributed from 0to 1. "list" is a list of elements.*
options are : A. return list[int(len(list)*rand())] B. return list[len(list)/rand()] C. return list[int(rand())] D. return list[len(list)]
14 Respuestas
0
Use randint(start,end)
0
which is the correct option +felix
0
?
0
Must be A
0
Are you presenting a challenge riddle? Because this is not the place for it.
0
HonFu my initial thought was similar but I think it's homework
There are three diff threads
0
then where to post ?
0
Roneel page not found
0
Are you using iOS app or web(desktop) version?
This is only for android app.
0
android obviously
0
Have you downloaded the app?
If not, download.
0
cut the crap & tell do you know the solution of the question I posted?
0
A) obviously
Anyway, I am sure but mods will mfd this thread.