Seed function | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Seed function

Why my output is changing when I pass seed(x) with no values when I pass x= zero or one the random output remains the same what does the x in seed used for

5th Jun 2021, 3:13 PM
kreddyt
kreddyt - avatar
2 Respostas
5th Jun 2021, 4:49 PM
Ratnapal Shende
Ratnapal Shende - avatar
0
Karthik Reddy Thotamgari The seed value in that case is the system time, which keeps on varying.
5th Jun 2021, 4:57 PM
Calvin Thomas
Calvin Thomas - avatar