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
It is illegal to have __________ emergency lights on your vehicle.
Alexxx [7]

Answer is A. Red and Blue

This because these are the same color of emergency lights that are used on Emergency vehicles like ambulances, police cars, fire trucks, etc. We wouldn't want normal citizens confusing drivers with police officers in case of an actual emergency.

8 0
3 years ago
Read 2 more answers
you are connected to a router. to provide access to the internet, you need to create a rule that would hide private ip addresses
kondor19780726 [428]

Based on the above, the technology that a person need to use is NAT.

<h3>What does Network Address Translation means?</h3>

The term Network Address Translation (NAT) is said to be the act or the process by which a person uses in mapping an internet protocol (IP) address to a given  place by altering the header of IP packets while in movement via a router.

Note that the Network Address Translation (NAT helps to boast as well as develop the security and lower the number of IP addresses an organization requires.

Hence, Based on the above, the technology that a person need to use is NAT.

Learn more about Network Address Translation from

brainly.com/question/24159022
#SPJ4

See full question below

You are connected to a router. To provide access to the internet, you need to create a rule that would hide private IP addresses behind one public IP address. Which technology should you use? (DHCP, Port forwarding, WPA, NAT)

8 0
2 years ago
Grades are numbers or ________ that show how a student performed in a course.
zloy xaker [14]
It’s either letters or percentages
8 0
3 years ago
Read 2 more answers
Which of the following is true of functions?
SVETLANKA909090 [29]

Answer:

only D.

Explanation:

A is false because you can only declare it once, then call it multiple times.

B is false does not affect the number of commands. You can expect that the function commands are run multiple times.

C is false because the amount of work the program has to do does not change.

D is spot on.

3 0
3 years ago
Jasper has an annual salary of $71,000, and his company pays him twice a month. What is the gross income per paycheck that Jaspe
Yanka [14]
First, you divide $71,000 by 12, to get the salary per month.

$71,000 / 12 = $<span>5,916.66.

Next, you divide the amount in a month by 2, to see how much money is paid for each half of a paycheck.

$5,916.66 / 2 = $2,958.33

Since the payment for every paycheck is $2,958.33, the answer is D.</span>
4 0
4 years ago
Read 2 more answers
Other questions:
  • Nevermind- I figured it out.
    14·1 answer
  • The _____ model of a systems development life cycle provides for progressive development of operational software, with each rele
    8·1 answer
  • Why is outfitting a workplace with video games in a technology development company consiered a strategic use of money
    14·1 answer
  • Terry is having a problem with his computer screen. He said the screen looks distorted. When you go to check his monitor, you no
    8·1 answer
  • Why should programmers use a Post Mortem Review?
    15·1 answer
  • You and your project team have been asked to generate a solution to a problem. The problem is not complicated, and you are sure
    6·1 answer
  • Which of the following is needed to connect to the Internet? HELP ASAP
    9·1 answer
  • Describe how serial data access finds data
    9·2 answers
  • QUESTION 1
    15·1 answer
  • For which tasks would Excel be useful? Check all that apply.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!