Lesson 05 random 亂數函數


https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.rand.html Lesson 5.1 rand(d0, d1, ..., dn) 亂數
    rand(d0, d1, ..., dn): Random values in a given shape, range[0,1). 產生n個維度[0-1)的亂數
Lesson 5.2 randint(l, m, n]) random integers function. 整數亂數函數
    randint(l, m, n]) generate n integers, the values of the integers between l and m, range[l,m), 產生m個介於l跟m的整數亂數


Lesson 5.1 rand(d0, d1, ..., dn) 亂數


    rand(d0, d1, ..., dn): Random values in a given shape. 產生n個維度0-1的亂數
Example Code
Note and Comments
result




Lesson 5.2 randint(l, m, n]) random integers function. 整數亂數函數


    randint(l, m, n]) generate n integers, the values of the integers between l and m, 產生m個介於l跟m的整數亂數
Example Code
Note and Comments
result