.. _sphx_glr_auto_examples_plot_normal_distribution.py: =============================== Showing the normal distribution =============================== Example of drawing normally distributed random number with threefry. .. image:: /auto_examples/images/sphx_glr_plot_normal_distribution_001.png :align: center .. code-block:: python import threefry import matplotlib.pyplot as plt r = threefry.rng(8255078853756962490) data = [r.random_normal() for i in range(5000)] plt.hist(data, bins=32, normed=True) plt.xlabel(r'$x$') plt.ylabel(r'$P(x)$') plt.show() **Total running time of the script:** ( 0 minutes 0.117 seconds) .. container:: sphx-glr-footer .. container:: sphx-glr-download :download:`Download Python source code: plot_normal_distribution.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_normal_distribution.ipynb ` .. rst-class:: sphx-glr-signature `Generated by Sphinx-Gallery `_