Dive into Python's random module and discover the power of the gauss() function! Unlike a German professor who lost his students' papers and graded them randomly (and got caught!), you’ll learn to use randomness intelligently.
In this video, we’ll explore the differences between numbers generated with randint() and gauss(), and show you how to shape the results to fit your needs.
timestamps:
00:00 intro
00:15 import
00:51 random.randint()
00:59 random distribution
01:16 normal distribution
01:32 random.gauss()
02:13 mu - shifting the bell curve
02:56 sigma - standard deviation
03:41 cut-off extremes
03:51 final version
03:58 outro
#pythonprogramming #pythontutorial #random #normaldistributiton #gauss
コメント