Edit Template

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 करते हैं। 

Add a comment...

  • 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
computer networks

Table of Contents All Chapters 1. OSI Model      1.1. Physical Layer      1.2. Data Link Layer  ...

computer networks

Table of Contents All Chapters 1. Topology 2. Types of Topology      2.1. Point to Point Topology    ...

computer networks

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

digital electronics number system

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

Edit Template

Sign up to track your learning

Login to continue your learning tracking

To reset your password, please enter your email address or username below.

Scroll to Top