[PYTHON] How to create random numbers with NumPy's random module

NumPy can generate random numbers with the np.random module.

・ Np.random.rand () that generates uniform random numbers from 0 to less than 1. Generates random numbers for the number of integers specified in ().

-Np.random.randint (x, y, z) that generates z integers greater than or equal to x and less than y Note that it produces integers greater than or equal to x and less than y. In addition, you can generate a 2x3 matrix by specifying an argument for z, such as (2,3).

・ Np.random.normal () that generates random numbers that follow a Gaussian distribution

Recommended Posts

How to create random numbers with NumPy's random module
[Python] How to display random numbers (random module)
[Python] How to deal with module errors
How to create sample CSV data with hypothesis
How to create a multi-platform app with kivy
An easy way to create an import module with jupyter
[Python] How to create a 2D histogram with Matplotlib
How to cast with Theano
How to Alter with SQLAlchemy?
How to separate strings with','
How to RDP with Fedora31
How to Delete with SQLAlchemy?
How to create a flow mesh around a cylinder with snappyHexMesh
[Python Kivy] How to create an exe file with pyinstaller
How to create dataframes and mess with elements in pandas
How to output additional information when logging with python's logging module
How to cancel RT with tweepy
Python: How to use async with
Testing with random numbers in Python
Create folders from '01' to '12' with python
How to use virtualenv with PowerShell
How to deal with imbalanced data
How to install python-pip with ubuntu20.04LTS
How to use Python's logging module
How to create a Conda package
How to create your own Transform
How to deal with imbalanced data
How to create an email user
How to create a virtual bridge
How to create / delete symbolic links
How to get started with Scrapy
How to get started with Python
How to deal with DistributionNotFound errors
How to get started with Django
How to Data Augmentation with PyTorch
How to create a Dockerfile (basic)
How to use FTP with Python
How to calculate date with python
How to install mysql-connector with pip3
How to INNER JOIN with SQLAlchemy
How to use the ConfigParser module
How to install Anaconda with pyenv
How to authenticate with Django Part 2
How to authenticate with Django Part 3
I tried to create a list of prime numbers with python
How to create a heatmap with an arbitrary domain in Python
How to create a label (mask) for segmentation with labelme (semantic segmentation mask)
How to write a docstring to create a named tuple document with sphinx
How to create a serverless machine learning API with AWS Lambda
How to do arithmetic with Django template
[Blender] How to set shape_key with script
How to create a clone from Github
How to title multiple figures with matplotlib
How to get parent id with sqlalchemy
How to create a git clone folder
How to add a package with PyCharm
python3 How to install an external module
How to create * .spec files for pyinstaller.
How to create an NVIDIA Docker environment
I tried to create a program to convert hexadecimal numbers to decimal numbers with python
How to install DLIB with 2020 / CUDA enabled