How can you get a random number in python?

278k points Registered user

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

Get access to your account and question