Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
0 Next we discuss an important concept of setting seed 1
So when we are running random functions it will be always giving us random values 2
That random value is being generated through a function 3
If you give it an input through a seed it will give a particular value to you 4
So seed 5
Comes to use many times 6
For example if you have set of random values and you want to get the same set of random values again you'll set a 7
seed before getting random values 8
If I am teaching and I am showing you an example 9
And my example has some random values and If I want you to have the same random values 10
I will set the sead 11
And I'll let you know what is the value of that seed so that you can set the same seed 12
We both will get the same random values 13
This is what we will do in the example also we will set seed 14
And both of us will get the same values 15
Seed value can be between -1 to 1 16
And both of them can be included 17
and it can have any decimal value also 18
So, this is how we set a seed 19
We will write select set seed of 20
Point 5 21
Once you have set the seed 22
When you run the random function it will give you a particular value 23
Every time you run 24
The random function after setting seed at .5 it will give you the same random value 25
The second time you run the random function, it will give you new value 26
But this value will 27
Always remain same what this means is, whenever you set the seed to 0.5 the first random 28
Function will give you same value, the second random function will give you a different value 29
than the 1st random function but it will be always same 30
If you do not understand this, let us look at an example you will get what I am trying to say 31
So let us first select setseed to 0.5 32
Setseed has Run successfully 33
Now let us 34
run the random function. select random 35
So this gives a random value of .5500 36
25. Let us write this is as a comment so that we remember it 37
Now run the random function again 38
So it is now given a value of 39
0.29531 40
Now let us set 41
Seed again 42
Write select set seed 0.5 43
Now the seed is again back to .5 44
Now when we run the random function 45
we'll get 46
The same value 47
I hope if you are doing it with me you are getting the same values as I am 48
let us run the random function again 49
This will be same as 50
.295311 51
So this is what setting seed helps you do. It helps to get 52
the same set of random values 53
So that you can repeat the calculations
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.