Q. Out of random() and randint(), which function should we use to generate random numbers between 1 and 5. Justify.


Answer:-

randint() function will use to generate random numbers between 1 and 5.
It return a random integer N in the range (a, b)

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post