Python Random Number Generator: the Random Module || Python Tutorial || Learn Python Programming

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

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

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

    Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica

  • @ferriolimaximus
    @ferriolimaximus 4 года назад +8

    I'm a programer. I can tell you these very best series of videos EVER. I enjoy them so much. One of the best things in RUclips.

  • @MrOmniblast
    @MrOmniblast 7 лет назад +51

    "Now we're rolling." - Hahaha. I'm in love with the character.

  • @RyanEmeryLovesCars
    @RyanEmeryLovesCars 3 года назад +4

    This editing looks like something straight out of a syfy movie in the year 2055. Excellent job.

  • @jamesdoone3516
    @jamesdoone3516 7 лет назад +23

    "Let the games begin . . ." I am hooked, Socratica.

  • @Socratica
    @Socratica  5 лет назад +35

    It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

    • @HITD47
      @HITD47 5 лет назад +1

      desperately waiting for lectures related to data science and AI

  • @nyashagupta4641
    @nyashagupta4641 4 года назад +8

    This is like watching a sci-fi movie. Loved it 💓

  • @Socratica
    @Socratica  5 лет назад +14

    Welcome to Socratica! You can see our entire Python Playlist here: bit.ly/PythonSocratica
    Subscribe to see all our new videos! bit.ly/SocraticaSubscribe

  • @shapedsilver3689
    @shapedsilver3689 6 лет назад +5

    This is amazing. Programming tutorial videos are NEVER this high quality. I saw this and subscribed right then and there.

  • @Socratica
    @Socratica  5 лет назад +1

    Support what you love! Socratica has a Kickstarter to make more Python: bit.ly/PythonKickstarter

  • @briannabyrd4283
    @briannabyrd4283 6 лет назад +2

    These videos are extremely helpful, easy to understand (clear voice, no mumbling), and are enjoyable to watch. Thank you, Socratica.

  • @Socratica
    @Socratica  5 лет назад

    We're halfway there. We still need your help! Support Socratica Python Kickstarter: bit.ly/PythonKickstarter

  • @PanetMaster
    @PanetMaster 6 лет назад +15

    Wow, this channel is such a gem

  • @bckzilla
    @bckzilla 7 лет назад +12

    Fantastic format, fantastic instructor, amazingly well framed.

  • @bryanchambers1964
    @bryanchambers1964 6 лет назад

    This is really helpful for my Monte Carlo class. Everyone else in there is a computer whiz except for me, thanks for helping me get caught up with the rest.

  • @nnajichidiebere7715
    @nnajichidiebere7715 5 лет назад

    This is the best tutorial i have ever seen. i really dont like commenting in comment sections but i thing i have to tell you that you are doing a very good job.THANK YOU, i really appreciate.

  • @johancouder8013
    @johancouder8013 8 лет назад +97

    P(Like) = 100%

  • @patientson
    @patientson 5 лет назад +1

    I love the way your mind works, especially when you make your analogy based on the topic you've taught me(us)

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

    everything I was looking for bout random in a single 7min video

  • @DamianRene
    @DamianRene 8 лет назад +42

    I like how it is correctly named "pseudo-random" numbers. is it known which kind of algorithms the program use to generate them?.
    PS: the quality of this channel is inversely proportional to the current visitors. I bet is gonna change soon!

    • @websnarf
      @websnarf 8 лет назад +7

      According to the online documentation, they use the Mersenne Twister, which is not surprising since it is portable and very high quality.

    • @SMC247
      @SMC247 7 лет назад +2

      Being deliberately pedantic: the quality is not inversely proportional as this would imply that the quality is declining with the increase in visitors, whereas the quality appears to have increased to a high level and plateaued at that level with little variation in quality.

  • @nuhaalghamdi2373
    @nuhaalghamdi2373 6 лет назад +9

    for i in range(3)
    print(random.choice(myopinion))
    great
    awesome
    amaaaaaazing

  • @luffyorama
    @luffyorama 8 лет назад +12

    Your video is superb! This is a hidden gem!

  • @chaosopher23
    @chaosopher23 5 лет назад

    At this time, 46 hardcore C++ coders didn't like this video. Sucks to be them! Keep up the awesome work, it's helped me learn how to code better in a few months than I have in all time (QBASIC with line numbers, green screen, C128, 5.25" floppy disk)!

    • @Socratica
      @Socratica  5 лет назад +1

      Our first was the C64 (the PET at school) and BASIC! Brings back memories. 💜🦉

  • @kylecox5127
    @kylecox5127 8 лет назад +1

    I love the presentation style. It makes programming feel so cool xD

  • @cody-w8j1g
    @cody-w8j1g Год назад

    Super, this people deserve our respect and appreciation.

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

      Thank you for your kind comment, Socratica friend! We're so glad you're watching!

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

    Really cool with the robot-like voice and the scifi sounds in the background. Like being taught programming by an android. Also well explained.

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

    No words to say simply awesome her style is unique and the content is unbeatable

  • @chochaos7
    @chochaos7 5 лет назад +20

    FInally created my first "Rock, Paper, Scissors, Lizard, Spock" game

  • @gauravraichandani7722
    @gauravraichandani7722 5 лет назад

    I never really comment on videos but I really appreciate the way you are teaching Python and I just want to add that I honestly laughed a lot at "Now we're rolling..."

  • @tartarik275
    @tartarik275 4 года назад

    Your teaching style is really good.

  • @RajanSingh088
    @RajanSingh088 7 лет назад +1

    I want Socratica to be my teacher. Awsommeeeeee video

  • @nickiexu9919
    @nickiexu9919 7 лет назад

    so much fun watching and learning! such a pleasure! better than watching a movie!

  • @parikalpbhardwaj3245
    @parikalpbhardwaj3245 6 лет назад +1

    Your way of teaching is amazing.😂

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

    The way you present this,... amazing !

  • @yogitasinkar5979
    @yogitasinkar5979 6 лет назад +2

    My brain cells multiplied when you said 'Now we are rolling!' after the dice example.

  • @ScrolltheNature
    @ScrolltheNature 5 лет назад

    i loved every single thing about this channel.

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

    I can't imagine how she explains
    Amazing explaination

  • @_tissael_4393
    @_tissael_4393 4 года назад

    Its just amazing!
    Im astonished!

  • @walkaboutdetroit1052
    @walkaboutdetroit1052 8 лет назад +1

    The intro is hilarious! Great Video. Really made me think about the whole process.

  • @mg2256
    @mg2256 7 лет назад

    When you didn't realize that super hard math class in college actually equated to the way python works. Interesting none of my profs never said anything about it. Kudos

  • @rahulmudagal1729
    @rahulmudagal1729 4 года назад

    AWSOME REPRESENTATION ,
    I love it

  • @krissloo143
    @krissloo143 4 года назад +1

    I still think that rock should beat paper tho xD
    managed to make a game finally
    love the style, love the humor, love the simplicity, love how much I learn in such a short time
    Everybody needs to know about this channel

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

    This series is phenomenal!

  • @potato3996
    @potato3996 6 лет назад

    Thank you so much for this video, my GCSE coursewok has just got soo much easier!

  • @harikap4605
    @harikap4605 7 лет назад

    Both the content and the effects are amazingly good.

  • @sv3glx
    @sv3glx 6 лет назад

    The collest programming channel ever!

  • @joshuahabash8572
    @joshuahabash8572 5 лет назад

    Excellent tutorial.
    I really love this channel.
    Much love from 2020

  • @OpenList
    @OpenList 7 лет назад

    Great job guys deserve million views

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

    Wow. Very good. The exact video I needed for Random numbers in python. Thank you

  • @vamsireddy5051
    @vamsireddy5051 5 лет назад

    Socratica you are awesome and please continue the series.

  • @ZerofeverOfficial
    @ZerofeverOfficial 6 лет назад +11

    6:00 as of March 2019 the Like ratio is 98.8 percent, ya'll scary.

  • @MagnusAnand
    @MagnusAnand 4 года назад

    For cryptography you can use the standard library module “secrets”
    > import secrets

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

    this presentation is so cool !

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

    thank you agent , i am now able to attack random targets thanks to you , the UIP thanks you on their behalf

  • @tshiamophamotse5079
    @tshiamophamotse5079 7 лет назад

    your videos are the best please keep them coming

  • @nyosgomboc2392
    @nyosgomboc2392 7 лет назад

    According to RUclips, there are around 1k likes (unfortunately, it's rounded) and 34171 views. If the likes were rounded down from 1500 (best case scenario), this means P(like)=4.39%, a bit off your calculations. Good tutorials on the other hand, so keep up the good work!

  • @mohammadkhan4444
    @mohammadkhan4444 6 лет назад

    great discussion......... thank you Socratica.....

  • @daoudatraore930
    @daoudatraore930 6 лет назад

    Very very very good chanel, this just teach me something that is going to help me a lot in programming with python :)

  • @shivamkeshri487
    @shivamkeshri487 7 лет назад

    its really good way of education i feel like game.......make more videos on python ..........thanks for help...

  • @nitintomer5923
    @nitintomer5923 5 лет назад

    Thanks @Socratica
    for sharing great videos. you have explained many things in very short duration. I wish your videos will get more likes and you deserve Millions of subscribers to your channel.

  • @amaterasu48
    @amaterasu48 6 лет назад +1

    You deserve much more views!

  • @christophermartinez1769
    @christophermartinez1769 7 лет назад +26

    OHHHHHHHHHHHHHMY THIS CHANNEL IS SOOOOOOOOOOOO GOOOOOOOOOD

    • @Socratica
      @Socratica  7 лет назад +5

      Awwwww thank you!!!! :D We're so glad you're watching!

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

    Hands up to u 😎😎
    Fantstic art
    Im ur new subscriber🙄

  • @omarcruz6326
    @omarcruz6326 5 лет назад

    Nice video ! I like your style 👌

  • @uranastefani7465
    @uranastefani7465 5 лет назад

    your videos are amazing, can not wait for more

  • @Vejinx
    @Vejinx 5 лет назад

    This is fantastic guys. Keep up the good work.

  • @alwalid9547
    @alwalid9547 7 лет назад

    you are always great !! i love all of your tutoirals

  • @WinnieWen
    @WinnieWen 4 года назад +1

    so helpful!!!

  • @00MagicMatt
    @00MagicMatt 4 года назад

    first time seeing her videos, the moment i heard her voice I subscribed because I thought this was so cool! lol

  • @ravitanwar9537
    @ravitanwar9537 6 лет назад

    288k subs on this channel is a shame . should be atleast a mil.

  • @deusvult4678
    @deusvult4678 7 лет назад

    i like her very much and i think i understand python logic more because of liking her

  • @13Uzamakifan
    @13Uzamakifan 8 лет назад +10

    I love this channel! So good! Thank you for all your work!

    • @Socratica
      @Socratica  8 лет назад +2

      We're so glad you've found us! Thanks for your kind message.

  • @MyTube4Utoo
    @MyTube4Utoo 7 лет назад

    I'm really loving your channel. Keep up the great work!!

  • @rishabhtripathi1191
    @rishabhtripathi1191 5 лет назад

    great
    experience of learning

  • @hamids4550
    @hamids4550 8 лет назад +6

    more python please :)
    Thank youuu

  • @jonathonfulbright8002
    @jonathonfulbright8002 7 лет назад +2

    "Now we're rolling" - i love it

  • @russellbrown7248
    @russellbrown7248 5 лет назад

    Love all videos very informative

  • @jerrywang3225
    @jerrywang3225 7 лет назад

    Very impressive and helpful video, hope you have more Python tutorials coming up in the future. Thanks a lot.

    • @Socratica
      @Socratica  7 лет назад +2

      Many more Python videos are on the way! In fact, we're filming three more this week. :)

  • @CarlosOrtiz-ht6rn
    @CarlosOrtiz-ht6rn 6 лет назад

    Production value over 9000!

  • @HITD47
    @HITD47 5 лет назад

    I wish she would upload more videos related to data science and other !!!

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

    Hello,first of all I want to thank you for sharing with us this information! Could you please make a short video about the types of algorithms in python ? Thank you again xD

  • @swiftsifu
    @swiftsifu 7 лет назад

    These videos are amazing, please do more.

  • @jakeambrose4294
    @jakeambrose4294 7 лет назад +1

    ill be giving a bit of patreon support soon and will be steady

  • @shonaboy7554
    @shonaboy7554 8 лет назад +4

    Okay ! If all lecturers were like this all students would get As. Thank you !

  • @AmitAgarwal1977
    @AmitAgarwal1977 5 лет назад

    Very good video

  • @deepankar58
    @deepankar58 6 лет назад

    What a video! Quality work! Great presentation. Subscribed after watching the first minute. :p

  • @arthurananda3610
    @arthurananda3610 7 лет назад +1

    Hi Socratic, your videos are so awesome! it helps me a lot ! can you make some videos about the python generator and the difference between yield and return?

  • @devilevic
    @devilevic 5 лет назад

    Absolutely love your videos. Great job!

  • @skilz8098
    @skilz8098 5 лет назад

    Coming from C++ and starting to learn Python; I have to give Python a P++ and I have to give Socratica a S++!

  • @izharkhankhattak
    @izharkhankhattak 4 года назад

    Helpful. Thank you so much.

  • @undercoverconman
    @undercoverconman 6 лет назад +3

    Oh my god !!! These videos are amazing. My students would love these

  • @omarcruz6326
    @omarcruz6326 4 года назад

    These videos are super coooool !

  • @GEScott71
    @GEScott71 6 лет назад

    Awesome, this helped me a lot - very enjoyable too. I'm loving and Soctratica!

  • @ducolindhout2403
    @ducolindhout2403 7 лет назад

    A very good video, helped me alot

  • @arslanmughal4294
    @arslanmughal4294 7 лет назад

    Hi !
    your channel is great :)
    i learn a lot here please keep this practice continue .
    thanks :)

  • @jerrygundecker743
    @jerrygundecker743 5 лет назад

    It's worth watching these until the end, if for no other reason but the punch line at the end.
    She delivers the lesson like a machine and then cuts you off at the ankles with a line like, "a fuzzy-wuzzy mess".

  • @subratkumarsahoo4849
    @subratkumarsahoo4849 6 лет назад

    Thank you very much for this tutorial.

  • @tresteinjordklatt8133
    @tresteinjordklatt8133 8 лет назад +5

    Yey, you've got a bitcoin-wallet. Finally a way for me to contribute to you :)

    • @Socratica
      @Socratica  8 лет назад +2

      Trestein, we are so grateful for your support! We love that our fans can help support our efforts using bitcoin. We can't tell you how much we appreciate it. Your donation will help us make our next Python video even sooner!
      All the best from all of us at Socratica

    • @ThapaSushil
      @ThapaSushil 7 лет назад

      Trestein Jordklatt Have you calculated how much your donation last year in bitcoin is worth right now? 😂😂

  • @NetNeelsie
    @NetNeelsie 5 лет назад

    Firstly, I want to say thank you, Started this month and it seems to be going well.
    To practice I made a RNG to simulate gear drop in BL2 and it works, but there is a issue...
    in outcomes there is a place holder for Legendaries name Legendaries which makes Legendaries print from the Legendaries list named outcomes2.
    The issue is from time to time I get a print "Legendaries".
    I will post my code below and if someone takes the time and check if they see the issue or a fix I will be please with the solution
    On a side note I have found that the code works without the elif and else parts:
    import random
    outcomes = ['White', 'Green', 'Blue', 'Purple', 'Legendary']
    outcomes2 = ['Infinity', 'Conference Call', 'Ogre', 'Norfleet', 'Lyuda']
    for i in range(20):
    print(random.choice(outcomes))
    if (random.choice(outcomes)) == 'Legendary':
    print(random.choice(outcomes2))
    elif print == "Legendary":
    print(random.choice(outcomes2))
    else:
    print(random.choice(outcomes2))

  • @pythonssv1034
    @pythonssv1034 5 лет назад

    Thank you mam