(p2) PS C:\Users\livingbody> python
Python 3.7.10 (default, Feb 26 2021, 13:06:18) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.random.choice(1000,10, replace=True)
array([417, 406, 891, 325, 581, 939, 178, 855, 692, 677])
>>> np.random.choice(1000,10, replace=False)
array([ 49, 21, 375, 874, 39, 354, 417, 23, 963, 825])
>>> np.random.choice(10,10, replace=False)
array([9, 1, 7, 2, 5, 0, 3, 4, 6, 8])
>>> np.random.choice(10,10, replace=False)
array([9, 0, 3, 4, 1, 8, 2, 6, 7, 5])
>>> np.random.choice(10,10, replace=True)
array([4, 6, 3, 0, 4, 7, 4, 4, 7, 1])
>>> np.random.choice(10,10, replace=True)
array([7, 4, 0, 4, 1, 9, 2, 6, 4, 4])
>>>