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
yawa3891 [41]
3 years ago
10

Write a script that will generate random integers in the range from

Computers and Technology
1 answer:
barxatty [35]3 years ago
5 0

Answer:

Explanation:

Let's do this in Python, we shall use the package random to generate a random double between 0 and 1. Then we multiply it with 50 and covert to integer to get a random integer between 0 and 50. Place a While function with condition to stop when it's greater than 25

from random import random

attempts = 1

random_int = int(random()*50)

print(random_int)

print("This is attempt " + attempts)

while random_int <= 25:

    attempts += 1

    random_int = int(random()*50)

    print(random_int)

    print("This is attempt " + attempts)

You might be interested in
HAve a good week lads, good luck on work :D
Leno4ka [110]

Answer:

v; its alright.

Explanation: none v;

8 0
3 years ago
Read 2 more answers
Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp pt.3
Luda [366]

Answer:

i guess option 1

5 0
2 years ago
Imagine that you have an image that is too dark or too bright. Describe how you would alter the RGB settings to brighten or dark
ratelena [41]
Turn the brightness up
7 0
2 years ago
How did the public feel towards Martin Luther King, Jr.?
Phoenix [80]

Answer:

Most Americans admire the life and work of Martin Luther King Jr., but their perception of him is smoke and mirrors.

Explanation:

hope this is what youre lookin for

6 0
2 years ago
A(n) ____ is a name that refers to a piece of the programâs memory, in which a value can be stored, retrieved, and changed.
Romashka [77]
It is a variable, such as object varialables, and parameter
8 0
3 years ago
Other questions:
  • 1. Write the name of the tab, command group, and icon that is used to sort information in a Word document.
    12·2 answers
  • What does the picture indicate on the famous book “Dawn of the century”?​
    10·1 answer
  • Identify and explain the three tiers of web-based applications.
    15·1 answer
  • How to see if your computer has bluetooth?
    6·1 answer
  • An electronic braille embosser that translates text from a braille keyboard to a printer:
    10·1 answer
  • After running a Google Search Ads campaign for several months, Meredith notices sales of her advertised products are starting to
    8·1 answer
  • A user found that their personal data had been exfiltrated from their computer by a malicious program that they clicked on sever
    12·1 answer
  • A previously saved labels report can be accessed from the
    9·1 answer
  • Henry must choose which type of smart speaker to use in his home. He asked you to help him decide which one will best suit his n
    8·1 answer
  • 100 POINTS
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!