OUCC Practice Round 1 Question 5

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

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

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

    what is the random integer representing?

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

      and what changes when you say if 3or if 5, what is the difference?

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

      Which questions?
      Random integer - I am guessing you mean going to a friend's house? If so, the random integer makes the house it finishes at completely random. If you went through the code, you will not be able to say which house it will finish at

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

      The random integer just gets it to randomly turn left. If I increase the number e.g. if random integer between 1 and 100 = 1, then there is a 1 in 100 chance of it turning left rather than a 1 in 2 or 1 in 3 chance. I solved this a different way in one of my more recent videos

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

      ruclips.net/video/NMhSGM5qv9w/видео.html
      explained towards the end of the video