00:01
For this problem, the first step is going to be to import our libraries.
00:05
We'll be using numpi for the numbers, and we'll be using piplot for the plots.
00:11
So we'll do import numpi as np is the sort of standard.
00:16
Then we'll import matplotlib.
00:21
.pyplot as plt.
00:25
Once we have that, we also want to make sure that we set the random seed.
00:29
We're told to use the seed, one, two, three.
00:32
So we do np .random .d .1 .2 .3.
00:39
Now that we have that, we want to generate the numbers.
00:45
So the way that we generate our numbers would be using the function np .drandom.
00:53
Dot uniform.
00:55
When we're doing this, we specify our low point, which is 10, our high point, which is 30, and then we specify the number of values.
01:06
So we want to...
01:07
10 ,000.
01:09
So we do that.
01:12
We can plot out, or let's see here, and say data just one to 10, maybe, and we can see the first 10 values from our dataset.
01:26
So we know that it generated correctly.
01:28
Then we want to create our histogram.
01:30
So to create the histogram, first of all, we want to make sure that we actually display it in some way.
01:39
So we do plt .d histogram.
01:43
And we want to put in our data.
01:49
Oh, not ply, plt...