Random Numbers With Math.random() (Java Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 70

  • @BillBarnum
    @BillBarnum  4 ปีที่แล้ว +1

    📌 Subscribe For The Latest Videos: bit.ly/36H70sy 📌
    .
    💻 All Java Tutorials: bit.ly/JavaTutorialsTH-cam 💻
    .
    🤖 Learn Java In 3 Hours: bit.ly/JavaIn3Hours 🤖

  • @ryansun731
    @ryansun731 2 ปีที่แล้ว +1

    all the sites i went to didnt explain how it worked, just how to use it, thanks for making it simple

    • @BillBarnum
      @BillBarnum  2 ปีที่แล้ว

      Thanks for the feedback, Ryan. I'm glad you liked the video!

  • @arushiarora9036
    @arushiarora9036 3 ปีที่แล้ว +4

    This is the only video I found on TH-cam that gave me what I wanted ..thank you so much .. you helped me through my exam !!

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      Thanks for the comment, Arushi!
      I'm glad that it helped.

  • @CoolCatCorbin
    @CoolCatCorbin 3 ปีที่แล้ว +5

    this explains a lot that the education I was relying on didn't

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว +1

      I'm glad you found it helpful, Danster!

  • @sylwesteroleszek3143
    @sylwesteroleszek3143 4 ปีที่แล้ว +10

    Really clear and easy to understand explanation. Thanks a lot!

  • @vihaanbeleri
    @vihaanbeleri 3 ปีที่แล้ว +3

    i am almost 2 years late but you explanation was quite clear .

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      Thanks for the feedback, Vihaan!

  • @swallowedinthesea11
    @swallowedinthesea11 4 ปีที่แล้ว +3

    I couldn't really understand Javascript's version until I came to your great explanation by accident. Thank you Bill!

  • @muhammadikram5836
    @muhammadikram5836 4 ปีที่แล้ว +9

    Thank You Sir That Was Brilliant Explanation Cleared All Concepts Regarding That Math.random(). I was doing an example on Polymorphism, Math.random() was used in that i was not getting that how the function is working after this video i can explain to anyone that how the Math.random() function generates random numbers... :)

  • @TheTechnonaut
    @TheTechnonaut 2 ปีที่แล้ว +2

    This was very helpful. Thanks so much!
    The concept was very nicely explained in just one short video 😊

  • @franklinmaradiaga2401
    @franklinmaradiaga2401 3 ปีที่แล้ว +3

    Thank you for making this video!! It was really helpful.

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว +1

      Thanks for the feedback, Franklin!

  • @furkaneyigozeyigoz5780
    @furkaneyigozeyigoz5780 3 ปีที่แล้ว +2

    Thank you for the easily to understand your explanation

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      Glad it was helpful!

  • @nitinnarayan3730
    @nitinnarayan3730 2 ปีที่แล้ว +3

    Nice explained.

    • @BillBarnum
      @BillBarnum  2 ปีที่แล้ว +1

      Thanks for watching and commenting, Nitin!

  • @abdulrahmanmohammed9773
    @abdulrahmanmohammed9773 4 ปีที่แล้ว +3

    Best explanation
    Thanks man 👌👍

  • @daumienebi
    @daumienebi 4 ปีที่แล้ว +2

    thanks man, nice explanation ahead of my exams today

  • @Beni352
    @Beni352 5 ปีที่แล้ว +2

    Very good explaining

  • @japhetjonathan2397
    @japhetjonathan2397 ปีที่แล้ว

    Nice explanation

  • @TobySullivan
    @TobySullivan 5 ปีที่แล้ว +5

    this is quite epic
    thank you sir

    • @Enlightened2371
      @Enlightened2371 4 ปีที่แล้ว +1

      Wait, a Java tutorial in 2019 that isn't shit quality?! Impossible

    • @TobySullivan
      @TobySullivan 4 ปีที่แล้ว +1

      @@Enlightened2371 it's lit

  • @wilburthemango
    @wilburthemango 3 ปีที่แล้ว +1

    thanks Bill!

  • @atifahmed9253
    @atifahmed9253 3 ปีที่แล้ว +2

    Can you do a video on how to order the random numbers?

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      Do you mean like sorting an array?

    • @atifahmed9253
      @atifahmed9253 3 ปีที่แล้ว

      Yes

    • @atifahmed9253
      @atifahmed9253 3 ปีที่แล้ว

      That’s what I meant

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      @@atifahmed9253
      The Java array and ArrayList class both have a sorting method built in.
      If you want to write your own sorting methods, here are a few options:
      1. Bubble Sort: th-cam.com/video/SwC0UNo_9mA/w-d-xo.html
      2. Selection Sort: th-cam.com/video/W7Cfgx4LCcQ/w-d-xo.html

  • @destinedforminyoongi4515
    @destinedforminyoongi4515 3 ปีที่แล้ว +1

    Thank you so much for this

    • @BillBarnum
      @BillBarnum  2 ปีที่แล้ว +1

      Thanks for the comment!

  • @gutenmorgan2063
    @gutenmorgan2063 4 ปีที่แล้ว +2

    thank you so much!!

    • @BillBarnum
      @BillBarnum  4 ปีที่แล้ว +1

      I'm glad that you found it useful.

  • @eyeofazurewrathe
    @eyeofazurewrathe 4 ปีที่แล้ว +3

    why is java so complicated

    • @BillBarnum
      @BillBarnum  4 ปีที่แล้ว +1

      The good news is that the more you learn about Java, the more it all starts to fit together.

    • @eyeofazurewrathe
      @eyeofazurewrathe 4 ปีที่แล้ว +1

      Bill Barnum im learning lua and c# rn

  • @Jason-jw5cu
    @Jason-jw5cu 4 ปีที่แล้ว +1

    Thank you very much !

  • @ravabat5841
    @ravabat5841 4 ปีที่แล้ว +1

    I thought that this video is about Math.random in JavaScript... Unfortunately ☹️. You are very awesome 👍 teacher. I liked this video and subscribed to your channel. Maybe in future you will teach people JavaScript.

  • @MuhammadNadeem-ek7qv
    @MuhammadNadeem-ek7qv 3 ปีที่แล้ว +1

    Thanks dear Sir

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      Thanks for the feedback! I'm glad you found it helpful.

  • @examguides3138
    @examguides3138 2 ปีที่แล้ว

    Got it! Tq

  • @visibleuser8973
    @visibleuser8973 2 ปีที่แล้ว

    helpful .. thnx

  • @monamahi1374
    @monamahi1374 5 ปีที่แล้ว +2

    thanks

  • @glennm5062
    @glennm5062 3 ปีที่แล้ว +1

    Thank you sir

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      Thanks for the feedback Glenn.

  • @mohamedalzayady1436
    @mohamedalzayady1436 4 ปีที่แล้ว +1

    my first noncomplicated explanation video in java lol

  • @bondheld
    @bondheld 2 ปีที่แล้ว

    Ty now just need to floor it

  • @eltesol
    @eltesol 3 ปีที่แล้ว

    When working on the array, I got the following error:
    /MyClass.java:9: error: cannot find symbol
    string[] name = {"Dorothy", "Glenda", "Toto"};
    ^
    symbol: class string
    location: class MyClass
    1 error

    • @anikanath8551
      @anikanath8551 3 ปีที่แล้ว +2

      Make sure to capitalize String at the beginning

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว +1

      That's good advice, Anika.

    • @eltesol
      @eltesol 3 ปีที่แล้ว +1

      @@anikanath8551 Haha. And I spent 10minutes proofreading before posting. Thanks, Anika

    • @eltesol
      @eltesol 3 ปีที่แล้ว +2

      @@BillBarnum Thanks, Bill. I love the course. I'm hoping to teach it next year and I welcome your advice on other resources that may help me reach that goal.

    • @BillBarnum
      @BillBarnum  3 ปีที่แล้ว

      ​@@eltesol
      Are you teaching the AP CSA course or a general Java course?

  • @ayxanhuseynov1355
    @ayxanhuseynov1355 2 ปีที่แล้ว

    xahis edirem cavabla

  • @christiand5083
    @christiand5083 5 ปีที่แล้ว +1

    First!

  • @delwyntomboer1789
    @delwyntomboer1789 4 ปีที่แล้ว

    Video was too vague

    • @BillBarnum
      @BillBarnum  4 ปีที่แล้ว

      Thanks for the feedback.
      What parts would you like to know more about?

  • @heybtmovlamov9867
    @heybtmovlamov9867 2 ปีที่แล้ว

    random generator
    import Random class;
    and open object random class
    Random rndm = new Random;
    int i = rndm.nextInt("Bound");
    sout (i)
    good luck

  • @HL-iw1du
    @HL-iw1du 5 ปีที่แล้ว +2

    thanks