Difference between Numpy randint and Random randint

import numpy as np
import random as rd

np.random.randint(0, 10)
rd.randint(0,10)

Randint when using Numpy is 0 ~ 9 in the above case When using Random, randint is 0 ~ 10 in the above case.

Numpy`` numpy.random.randint (a, b) -> ʻa to b-1 Random`` random.randint (a, b) `->'a to b'

Numpy is the same asrange (a, b), so it didn't feel strange, I was surprised at this specification because I used to use Random a lot at the beginning.

Recommended Posts

Difference between Numpy randint and Random randint
[Python] Difference between randrange () and randint ()
Difference between process and job
Difference between "categorical_crossentropy" and "sparse_categorical_crossentropy"
Difference between regression and classification
Difference between np.array and np.arange
Difference between MicroPython and CPython
Difference between ps a and ps -a
Difference between return and print-Python
Difference between Numpy (n,) and (n, 1) notation [Difference between horizontal vector and vertical vector]
Difference between Ruby and Python split
Difference between java and python (memo)
Difference between list () and [] in Python
Difference between SQLAlchemy filter () and filter_by ()
Difference between == and is in python
Memorandum (difference between csv.reader and csv.dictreader)
(Note) Difference between gateway and default gateway
Difference between sort and sorted (memorial)
Difference between python2 series and python3 series dict.keys ()
[Python] Difference between function and method
Difference between SQLAlchemy flush () and commit ()
Python --Difference between exec and eval
[Python] Difference between sorted and sorted (Colaboratory)
Python / Numpy> Link> Difference between numpy.random and random.random> thread-safe or not
[Xg boost] Difference between softmax and softprob
[Django ORM] Difference between values () and only ()
Difference between PHP and Python finally and exit
Difference between @classmethod and @staticmethod in Python
Difference between append and + = in Python list
Difference between nonlocal and global in Python
Difference between linear regression, Ridge regression and Lasso regression
[Python] Difference between class method and static method
Difference between docker-compose env_file and .env file
[Python Iroha] Difference between List and Tuple
[python] Difference between rand and randn output
speed difference between wsgi, Bottle and Flask
Differences between Numpy 1D array [x] and 2D array [x, 1]
Difference between numpy.ndarray and list (dimension, size)
Difference between ls -l and cat command
Difference and compatibility verification between keras and tf.keras # 1
list and numpy
What is the difference between `pip` and` conda`?
Difference between using and import on shield language
[python] Difference between variables and self. Variables in class
About the difference between "==" and "is" in python
About the difference between PostgreSQL su and sudo
What is the difference between Unix and Linux?
Consideration of the difference between ROC curve and PR curve
The rough difference between Unicode and UTF-8 (and their friends)
Python and numpy tips
Center difference and forward difference
Can BERT tell the difference between "candy (candy)" and "candy (rain)"?
[Tips] First-order difference calculation and inverse conversion [python / numpy]
Between parametric and nonparametric
Difference between Ruby and Python in terms of variables
What is the difference between usleep, nanosleep and clock_nanosleep?
Difference between return, return None, and no return description in Python
How to use argparse and the difference between optparse
Differences between numpy and pandas methods for finding variance
I want to absorb the difference between the for statement on the Python + numpy matrix and the Julia for statement
What is the difference between a symbolic link and a hard link?