Computer Science, asked by wytopq981m, 2 months ago

Write a program that generates a random decimal number between 1 and 10 with two decimal

places of accuracy. Examples are 1.23, 3.45, 9.80, and 5.00.​

Answers

Answered by ItzYourJaani
36

rañdint comes from rañdom integer, so it will give you an integer value. What you are looking for is rañdom.rañdom, which returns a float from 0 to 1. Then just multiply it by 10.

Answered by Anonymous
3

write an application to the headmaster of your school seeking permission for organising a “keep your school clean" programme by the students of class 10 advocating the importance of such programmes.

Similar questions