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
Question # 4 Dropdown Finish the code for this function. ​
DaniilM [7]

Answer:

==

Explanation:

I did it on edge 2021

8 0
3 years ago
Read 2 more answers
Can someone please tel me what switches are in my keyboard? I know they are blye byt what brand?
AlladinOne [14]

Answer:

a s d shift and z and cap lock  if you meant the keys

Explanation:

3 0
3 years ago
Harry wants to change the background of all of his presentation slides. Which slide will enable him to make this change to all t
Alexxx [7]

Harry would need to change the "color scheme" to change the background of all his presentation slides.

3 0
3 years ago
Read 2 more answers
How can you check an orthographic drawing to be sure there are no missing lines
pochemuha
Here is the correct answer of the given question above. You can check an orthographic drawing to be sure that there are no missing lines by using each view. The views in the orthographic drawing include top view, side view and front view. 
4 0
4 years ago
Read 2 more answers
Which of the following is not a valid SQL statement? a. CREATE TABLE anothernewtable (newtableid VARCHAR2(2)); b. CREATE TABLE a
gizmo_the_mogwai [7]

Answer:

Option D  All of the above are valid statements.

Explanation:

CREATE TABLE anothernewtable (newtableid VARCHAR2(2));

CREATE TABLE anothernewtable (date, anotherdate) AS (SELECT orderdate, shipdate FROM orders);

CREATE TABLE anothernewtable (firstdate, seconddate) AS (SELECT orderdate, shipdate FROM orders);

All these statements are valid for SQL

3 0
4 years ago
Read 2 more answers
Other questions:
  • Which of the following is a benefit, as well as a risk, associated with client/server networks?
    14·1 answer
  • Write a program that defines an interface having the following methods: addition, subtraction, multiplication, and division. Cre
    8·1 answer
  • Which function is used to display a string value to the screen?
    8·1 answer
  • Which two jobs have high demand need for practitioners( have a skill shortage)
    13·1 answer
  • "the most common way to access the internet is through ________."
    5·1 answer
  • To activate a wizard to help in creating combo boxes and command buttons, make sure the ____ button is selected
    6·1 answer
  • Today encoding scheme has taken over ascII by what
    5·1 answer
  • Ross has to create a presentation for his class but can't decide on a topic. What should he do?
    9·2 answers
  • What are two drawbacks of using netbook ? (Choose two)
    8·1 answer
  • One symptom of malware infection is that your antivirus software is disabled and cannot be re-enabled. Choose the answer. True F
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!