Data analysis study notes (5) - numpy: random numbers

Common random functions

function illustrate
seed Determine the seed for the random number generator
permutation Returns a random permutation of a sequence or returns a range of random permutations
shuffle Shuffle the sequence
rand produces uniformly distributed sample values
dating Randomly pick integers from a given range of upper and lower bounds
randn produces sample values ​​that are normally distributed (mean 0, standard deviation 1), similar to the MATLAB interface
binomial produces sample values ​​from a binomial distribution
normal produces normally (Gaussian) distributed sample values
beta produces sample values ​​from a beta distribution

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324695510&siteId=291194637