+ 1

How to code to a random number

5th Aug 2020, 11:02 AM
Sai kanha
Sai kanha - avatar
4 Réponses
+ 4
Is "aa" a new language in the market? Please don't post irrelevant tag it really makes the job of searching algorithm and the answerers difficult, I hope you understand.
5th Aug 2020, 11:10 AM
minirkk
minirkk - avatar
5th Aug 2020, 11:29 AM
FᄂӨЯΣПᄃ BΛЯDΉI
FᄂӨЯΣПᄃ BΛЯDΉI - avatar
+ 1
See this https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2438/ For better explanation... Random module (built in) can be used to generate random values. (I saw your recent code and helping with that) Usage: import random computer_guess=random.randrange(0,10) user_guess=int(input()) if user_guess==computer....... . . . Here you code will complete (randint will include end value but randrange excludes the last values)
5th Aug 2020, 11:20 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
Thank
5th Aug 2020, 11:23 AM
Sai kanha
Sai kanha - avatar