in Technology by

How can you get a random number in python?

1 Answer

0 votes
by

random() − returns a random float r, such that 0 is less than or equal to r and r is less than 1.

Related questions

0 votes
    How can I get the number of elements of a list? Ex- items = [] items.append("one") items.append("two") items.append("three") Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    Riddle How can you add eight 8's to get the number 1,000? (only use addition)...
asked Feb 12, 2021 in Education by JackTerrance
0 votes
    How will you get the min valued item of a list in Python?...
asked Nov 26, 2020 in Technology by JackTerrance
0 votes
    How will you get the max valued item of a list Python?...
asked Nov 26, 2020 in Technology by JackTerrance
0 votes
    How will you get the length of a list in Python?...
asked Nov 26, 2020 in Technology by JackTerrance
0 votes
    I would like to get a list of Python modules, which are in my Python installation (UNIX server). How can ... in your computer? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Write a Python program to get the Python version you are using. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    Write a Python program to get the Python version you are using. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    How will you get the highest number present in a list using Java 8...
asked Nov 8, 2020 in Education by Editorial Staff
0 votes
    Can anyone tell me what jobs can I get with Python? Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    How can we get count of the number of records in a table?...
asked Nov 9, 2020 in Technology by Editorial Staff
0 votes
    How can you pick a random item from a range?...
asked Nov 25, 2020 in Technology by JackTerrance
0 votes
    How can you pick a random item from a list or tuple?...
asked Nov 25, 2020 in Technology by JackTerrance
0 votes
    Explain how can you make a Python Script executable on Unix?...
asked Dec 7, 2020 in Technology by JackTerrance
0 votes
    I am a number I am not an odd number I am higher than 90 I am not higher than 100 If you subtract me from 100, you get nothing. What number am I?...
asked Feb 13, 2021 in Education by JackTerrance
...