Random Seed Method in Python [NumPy + Random module]

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 68

  • @meththanikappagoda
    @meththanikappagoda Год назад +1

    oh my god.. i tried so many times to understand the seed function by referring so many sources. This explanation taught it to me at once. Thank you so much. You are a brilliant teacher.

    • @Koolac
      @Koolac  Год назад +1

      Glad it helped. Many thanks for your feedback which is encouraging.

    • @meththanikappagoda
      @meththanikappagoda Год назад

      @@Koolac Keep it up. Love from Sri Lanka 🇱🇰🇱🇰🇱🇰

  • @ganeshkandepalli18
    @ganeshkandepalli18 3 года назад +2

    Nice Video, it cleared my confusion related random.seed()...

    • @Koolac
      @Koolac  3 года назад +1

      Glad it was helpful. Thanks for your support which gives me a lot of energy.

  • @adityasingh54
    @adityasingh54 Год назад +1

    Smoothly explained

    • @Koolac
      @Koolac  Год назад

      Glad you liked it. Thanks for your feedback.

  • @solomonjoshy9045
    @solomonjoshy9045 2 года назад +1

    WOWWWWWWW!!!!!!! The teacher i need...I found you.....🤩🤩🤩🤩🤩🤩

    • @Koolac
      @Koolac  2 года назад

      So nice of you. Glad it was helpful! Many Many thanks that you have left a comment for this video.

  • @aswo652
    @aswo652 3 года назад +2

    Thanks a lot You clarify and explain the code in a smooth way

    • @Koolac
      @Koolac  3 года назад

      Glad it was helpful! Thamks.

  • @jacobs8531
    @jacobs8531 2 года назад +1

    short and to the point! subbed

    • @Koolac
      @Koolac  2 года назад

      Thank you "Jacobs." So nice of you. Glad you liked it.

  • @johnseng1311
    @johnseng1311 Год назад +1

    Nice! Easy to understand

    • @Koolac
      @Koolac  Год назад

      Glad you think so! Thanks for your feedback.

  • @aptitudelearner7167
    @aptitudelearner7167 Год назад +1

    Your way of asking to subscribe is soo nice i subscribed it as soon as I saw you on screen

    • @Koolac
      @Koolac  Год назад

      So happy to hear that. Thanks. Welcome

  • @harshitchopra1551
    @harshitchopra1551 3 года назад +2

    Thanks a lot understood completely....!!!

    • @Koolac
      @Koolac  3 года назад

      Glad it helped. Thanks

  • @fadirasak2049
    @fadirasak2049 2 года назад +1

    Clear and precise👍🏽

    • @Koolac
      @Koolac  2 года назад

      It's really nice of YOU. Thanks for your feedback.

  • @FabiolaPastorino
    @FabiolaPastorino 2 года назад +2

    Great video with a very clear explanation.

    • @Koolac
      @Koolac  2 года назад

      Glad it was helpful! Thanks for your comment.

  • @kunaldere-g8l
    @kunaldere-g8l Год назад +1

    Very precise expression😍

    • @Koolac
      @Koolac  Год назад

      So happy to hear that.
      Many thanks for being kind and giving feedback.

  • @Srijan101xz
    @Srijan101xz 2 года назад +1

    crystal clear explanation

    • @Koolac
      @Koolac  2 года назад

      Thank you so much. Glad it was helpful.

  • @alexanderpetranov
    @alexanderpetranov 3 года назад +2

    Amazing video and great explanation!

    • @Koolac
      @Koolac  3 года назад

      Glad you liked it!

  • @graciam3020
    @graciam3020 2 года назад +1

    Thank you so much, very well explained.

    • @Koolac
      @Koolac  2 года назад

      Glad it was helpful! It's nice of you. thanks

  • @jayaraju-h8k
    @jayaraju-h8k Год назад

    thanks for this video!

  • @assails5705
    @assails5705 Год назад

    Thank u for the explanation. But i have Q. what is the difference between using the values passed to random.seed()? if i used 0,3 or any other value? beside the changing in the output, i'm confused about the value it self when to use 0 or other value.

  • @SauravPant
    @SauravPant 2 года назад

    GreaT ExplanaTioN Wid GreaT ExamPle😍

    • @Koolac
      @Koolac  2 года назад

      Glad you liked it! Thank you for your passionate comment.

  • @rohitmarthak7747
    @rohitmarthak7747 Год назад

    If i have a list of integers and i want to find a seed to replicate same list with random generator is it possible?

  • @kreddy443
    @kreddy443 3 года назад +1

    bro why the output is changing when i didnt pass any value in the seed function .i've came to know that the argument takes the input for displaying another element after given seconds or milli seconds correct me if im wrong

    • @namesurname6294
      @namesurname6294 3 года назад +2

      Every argument in the seed function produces different outputs, BUT one seed always produces the same number. It's random between seeds but not inside one seed.

    • @namesurname6294
      @namesurname6294 3 года назад +2

      There is nothing about miliseconds. This isn't the time module.

    • @namesurname6294
      @namesurname6294 3 года назад +2

      Btw, this functiın doesnt display anything. It's like a rule. We use print to display the result produced by another function with this rule applied.
      And, one function only returns once.

  • @RamiSobhani
    @RamiSobhani 24 дня назад +1

    very good explanation but as an advice reduce the number of times you ask for like and subscribe it is a bit distracting

    • @Koolac
      @Koolac  6 дней назад

      Glad you liked the video.
      Thanks for your suggestion. I appreciate it. You are right. This was an old video. I used to do the thing you mentioned in those days. But you are 100% right. I should NOT do it. And, actually, I don't do it nowadays.

  • @ahmedelsabagh6990
    @ahmedelsabagh6990 2 года назад

    Simple and useful

    • @Koolac
      @Koolac  2 года назад

      Glad you liked it.
      I am very sorry for my late reply. I hope you will not be upset by this delay.

  • @tongpoo8985
    @tongpoo8985 2 года назад +1

    good video but please use a dark theme for your coding tutorials

    • @Koolac
      @Koolac  2 года назад +1

      Thank you for your kindness and feedback. But I did poll exactly the same thing on an Instagram channel, which of course was not in English, and generally their opinion was to use a light theme. And to be honest, I myself prefer light theme as well.

    • @tongpoo8985
      @tongpoo8985 2 года назад +1

      @@Koolac I would still suggest a dark theme because there are some people (like me) who avoid light theme videos due to sensitive eyeballs. So even though more people might prefer a light theme, the dark theme preferers are more likely to be turned off by light theme than vice versa. Just my personal opinion

    • @Koolac
      @Koolac  2 года назад

      I have recorded some videos before, so I cannot change them. But today, I recorded a video with a black theme. I hope this works better and people like it more. I will upload this video a couple of days later.

  • @MrKB_SSJ2
    @MrKB_SSJ2 2 года назад

    Thanks a lot!!

    • @Koolac
      @Koolac  2 года назад

      You're welcome.
      Thanks for your feedback.
      I am very sorry for my late reply. I hope you will not be upset by this delay.

  • @bluemoon7890
    @bluemoon7890 2 года назад

    If providing seed(0) will yield the same output for different users, doesn't it defeat the purpose of the number being random?

    • @Koolac
      @Koolac  2 года назад

      If you don't pass seed, it would be totally random.
      But for reproducibility purposes you can pass random seed.

  • @forhadali5927
    @forhadali5927 2 года назад

    Nice vedio i am from india

    • @Koolac
      @Koolac  2 года назад +1

      Thanks and welcome dear Ali. India is one of the countries that I really like to travel to. For example I want to see Taj Mahal (which If I tell you that we studied about Taj Mahal in school, you will not believe it; but we did).
      I am very sorry for my late reply. I hope you will not be upset by this delay.

  • @milanomac948
    @milanomac948 2 года назад

    nice tune bro

    • @Koolac
      @Koolac  2 года назад

      It's nice of YOU. Many thanks for your support and feedback.

  • @forhadali5927
    @forhadali5927 2 года назад

    Nice video

    • @Koolac
      @Koolac  2 года назад

      Thanks. It's nice of you.
      I am very sorry for my late reply. I hope you will not be upset by this delay.

  • @rajeshluthra9643
    @rajeshluthra9643 2 года назад +1

    good

    • @Koolac
      @Koolac  2 года назад

      Thanks. It's nice of YOU.

  • @radhikardk5990
    @radhikardk5990 2 года назад

    Why in 0 place 5 and 6

    • @Koolac
      @Koolac  2 года назад

      What do you mean by "Why in 0 place 5 and 6 ?"

    • @radhikardk5990
      @radhikardk5990 2 года назад

      @@Koolac yes

    • @radhikardk5990
      @radhikardk5990 2 года назад

      Are u able give answer

  • @newpinturaj
    @newpinturaj Год назад

    👍👍👍👍👍👍

  • @ashwinipawar1496
    @ashwinipawar1496 2 года назад

    👍🏻

    • @Koolac
      @Koolac  2 года назад

      Thank you so much for your support.