Table of Contents
NumPy Tutorial
Table of Contents
NumPy Tutorial
NumPy Random Module in Hindi
Random module का use random numbers को generate करने के लिए किया जाता है, इसमे कई सारे methods होते है जो अलग-अलग types के numbers को generate करते है।
random.rand() Method
ये method uniform distribution (0 से 1 के बीच के numbers) से random floats (decimal numbers) generate करता है। इसमे shape (number of rows, number of columns) को as a parameter दिया जाता है।
random.randint() Method
Randint() method का use random integers का generate करने के लिए किया जाता है। इसमे starting और ending number को as a parameter देते है साथ ही array का shape (number of rows, number of columns) भी दे सकते है।
Random Sampling
किसी array में से random elements को select करने के लिए random.choice() method का use करते है। इसके array और number of elements को as a parameter देते है।
random.seed() Method
कोई भी random number generator method हर बार different number generate करता है but अगर हम चाहते है की हर बार same output आए तो हम random.seed() method का use कर सकते है।
Random Distributions
NumPy में कई statistical distributions के लिए भी methods हैं
Normal Distribution
NumPy में normal distributions के लिए random.normal() methods का use करते हैं।
Uniform Distribution
NumPy में normal distributions के लिए random.uniform() methods का use करते हैं।
Binomial Distribution
NumPy में normal distributions के लिए random.binomial() methods का use करते हैं।
Poisson Distribution
NumPy में normal distributions के लिए random.poisson() methods का use करते हैं।
- All Posts
- Artificial Intelligence
- Computer Fundamentals
- Computer Networks
- Data Analytics
- Data Science
- DBMS
- Deep Learning
- Digital Electronics
- DSA with Python
- Excel
- Exercise
- Git & Github
- Machine Learning
- Matplotlib
- Natural Language Processing
- NumPy
- Operating System
- Pandas-s
- Power BI
- Python Tutorial
- Scikit-learn
- Seaborn
- SQL & MySQL

Table of Contents All Chapters 1. Personal Area Network 2. Local Area Network 3. Campus Area Network 4. Metropolitan Area...

Table of Contents All Chapters 1. Data Communication 2. Types of Data Communication 2.1. Simplex 2.2....

Table of Contents All Chapters 1. Special Logic Gate 2. XOR Gate 2.1. XOR Gate Truth Table 3....

Table of Contents All Chapters 1. Universal Logic Gates 2. NOR Gate 2.1. NOR Gate Truth Table 3....

Table of Contents All Chapters 1. Logic Gate 2. AND Gate 2.1. AND Gate Truth Table 3. OR...

Table of Contents All Chapters 1. Simplification 2. Simplification using Boolean Algebra Theorems 3. Simplification using K-map Digital Electronics...

Table of Contents All Chapters 1. Identity Laws 2. Null Laws 3. Domination Laws 4. Idempotent Laws 5. Complement Laws...