193k views
4 votes
What technology format could be used to generate 10 random numbers between 1 and 900?

a) Python random library
b) Excel formulas
c) C++ compiler
d) HTML programming"

User Dorn
by
7.5k points

1 Answer

2 votes

Final answer:

To generate 10 random numbers between 1 and 900, one can use the Python random library, Excel formulas, or a C++ compiler. HTML programming alone cannot generate random numbers as it is a markup language.

Step-by-step explanation:

To generate 10 random numbers between 1 and 900, you could use any technology that has a random number generation feature. While selecting from the provided options, we should explore each one:

  • The Python random library is an excellent tool for this task. You could use the randint() method to produce 10 different numbers in the desired range.
  • Excel formulas, like RANDBETWEEN(1, 900), can also generate random numbers between specified limits.
  • A C++ compiler can be utilized to write a program using the rand() function along with srand() to seed the random number generator.
  • HTML programming alone cannot generate random numbers, as HTML is not a programming language but a markup language. However, you could use JavaScript in conjunction with HTML to accomplish this task.

In conclusion, the Python random library, Excel formulas, and C++ compiler are suitable technologies for generating random numbers, whereas HTML alone is not.

User Ouma
by
8.1k points