Computer Science, asked by Anonymous, 8 months ago

13 Write a program in python that generates six random numbers in a sequence created with (start stop, step). Then
print the mean, median and mode of the generated numbers.​

Answers

Answered by alfezpatel
2

Answer:

In this article, We will learn how to generate random numbers and data in Python using a random module. In Python, a random module implements pseudo-random number generators for various distributions including integer, float (real).

The Goals of this article: –

The following are the list of common operations that we are going to cover in this article.

Generate random numbers for various distributions including integer and floats.

Random Sampling and choose elements from the population.

Functions of the random module.

Shuffle the sequence data. Seed the random generator.

Generate random strings and passwords.

Cryptographically secure random generator using a secrets module. Generate secure tokens, security keys, and URL

How to set the state of a random generator.

Use NumPy’s random to generate random arrays.

Use the UUID module to generate unique IDs

The article links provided in this article is also written by me to cover subtopic in detail.

Recommended Exercise and Quiz:

Python Random Data Generation Exercise →

Python Random Data Generation Quiz →

How to Use a random module

The random module has various functions to accomplish all of the above tasks. We will see how to use these functions in the latter section of the article.

You need to import the random module in your program, and you are ready to use this module. Use the following statement to import the random module in your code.

import random

Let see how to use a random module now.

import random

print("Printing random number using random.random()")

print(random.random( ..,.....hii please follow me back and can you give me brilliant

Answered by shourya53
2

Lol jldi text kr...

Dristi_ahlawat1

❤️

Similar questions