1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Trava [24]
3 years ago
12

using a timer to generate a random number, develop a program that displays random numbers between 1 and 47 (or whatever) for you

r state's lottery
Computers and Technology
1 answer:
mestny [16]3 years ago
3 0

Answer:

Explanation:

The following code is written in Python. It creates a variable that detects the current time. Then it loops through a range of numbers and chooses the last random number after 2 seconds. Finally, it prints that number to the screen. This function can be called countless times depending on the number of state lottery numbers needed.

import random

import time

start_time = time.time()

while time.time() - start_time < 2:

   lottery_number = random.randint(0, 48)

print(lottery_number)

You might be interested in
What is the full form of GUI​
Nonamiya [84]

Answer:

The graphical user interface (GUI /dʒiːjuːˈaɪ/ jee-you-eye or /ˈɡuːi/) is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces, typed command labels or text navigation.

4 0
3 years ago
Read 2 more answers
arla made a spreadsheet in Excel showing the projected costs for a concert she was putting on. What can Marla enter into cell A1
svp [43]

Marla can enter Food for examble for A11 on the exl page

3 0
3 years ago
How can I find all the answers for the NWEA MAP Math, English, Reading, and Science tests? Please help!!!!! I found some answers
Gala2k [10]

Answer:

if its a test try to just do it on your own ,you got nothing to lose from a test, its just to understand what you know on the concepts, but if you would still like answers just search around the net or here and you can always post the questions to ask people for help someone would eventually answer your questions but then beware of bots that post links as answer!

Explanation:

6 0
3 years ago
Advantages of a compiler​
valentina_108 [34]

Answer:

Improved performance.

Reduced system load.

Protection for source code and programs.

Improved productivity and quality.

Portability of compiled programs.

SAA compliance checking.

3 0
3 years ago
Read 2 more answers
A user contacted the help desk to report that the laser printer in his department is wrinkling the paper when printed. The user
Ira Lisetskai [31]

Answer:

Option A and Option E are correct.

Explanation:

A user informed the call center to complain that their office's laser printer damages every paper while it is printed. The user well into the distribution tray reviewed those papers although it's glossy and wrinkle-free.

So the purpose behind it is that the paper doesn't reach the printer's specifications, or even when going thru the printer, the paper becomes moist.

8 0
4 years ago
Other questions:
  • Read the scenario and answer the question. Audrey had problems with her computer software recently. One of her programs shut dow
    12·2 answers
  • We have to calculate the percentage of marks obtained in three subjects (each out of 100) by student A and in four subjects (eac
    11·1 answer
  • On January 1, 1980, Moises deposited $1850 into a savings account paying 5.6% interest, compounded quarterly. If he hasn't made
    9·2 answers
  • Select all that apply.
    15·2 answers
  • Positive and negative impacts of chemical industries
    6·2 answers
  • USDA-APHIS Animal Care Resource Policy #12 "Considerations of Alternatives to Painful/Distressful Procedures" states that when a
    11·1 answer
  • What is blogging
    15·2 answers
  • Attackers need a certain amount of information before launching their attack. One common place to find information is to go thro
    11·1 answer
  • The part of the computer that provides access to the internet is the
    7·1 answer
  • Jacob is preparing a presentation on the health and social advantages of taking up a sport at an early age. Most of the slides i
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!