Skip to content

Files

Latest commit

4adf771 · Jan 25, 2018

History

History
This branch is 23 commits behind csc-training/hpc-python:master.

random-numbers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 24, 2018
Jan 25, 2018

Random numbers

Generate a one dimensional 1000 element array of uniformly distributed random numbers using the numpy.random module.

  1. Calculate the mean and standard deviation of the array using numpy.mean() and numpy.std().
  2. Choose some other random distribution and calculate its mean and standard deviation.

You can visualize the random distributions with matplotlib’s hist() function.