Using random numbers with Arduino

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

This video tutorial walks through the use of the random() and randomSeed() function as it pertains to Arduino. We first investigate the output of the random function, why we need to use the randomSeed function to generate more apparent randomness and how to do it. We then use the randomly generated numbers to turn on and off three separate LEDs...randomly...
Рекомендации по теме
Комментарии
Автор

I must have spent 4 hours last night searching for the answer this and proper examples and instruction to figure this out, and you sir, are a genius! THANK YOU!

walkswithmight
Автор

The best explanation and ilustration of all. YouTubers should learn fron this tutorial. Clear, professional and to the ponit without annoying background music. THANK YOU!!

alienc
Автор

thorough but not verbose.. very good quality and the editing is def worth the time as it greatly helps the experience of the viewer!

davisactual
Автор

Really helpful stuff! I like how you evolved the code step by step, with explanations en-route : )) I'm just starting with Arduino, aiming to light sci-fi model kits!

thedownhilla
Автор

bro i love you and your way of explaining and teaching things, really you're the best.... with all my thanks to you❤❤

ANAZ-RX
Автор

I did the same sort of thing on a Mega 2560 with 26 white LEDs in a row. I refined it to a short delay (10) with an analogRead random seed and the effect is somewhat mesmerizing. I call it Rain Dance because it reminds me of a rain storm hitting lit pavement at night. It runs 24/7 in my office and has been since December 23!

jameshenry
Автор

Those randomSeed tutorials help me a lot, thanks !

lutfilawijaya
Автор

Another terrific tut !  Random, I like ! Any regularity causes the brain's "Flight or Fight" response, which is strictly attuned only to "new events", to wander away once it has determined that no threat exists. Therefore, Random Events are better for holding viewers attention, (to a degree, of course, because blinking lights as a rule are not a 'danger' per se! ).  keep up the great work!

christmasdreams
Автор

Thanks so much.
I was getting all kinds of headaches with generating random numbers

MrEuphonious
Автор

So very clean concise tutorial on random number generation, thank you.

gordonyoud
Автор

Fantastic tutorial. Learned so much in a short space of time

ArcanePath
Автор

thank you very much, my instructor asked us to do something like this without teaching and I was kinda overwhelming. thanks this help alot

AioTranNhan
Автор

awesome, i used half of your code to fix my issue! thanks alot

MrOrnidoko
Автор

How to catch random number to a variable in void loop that will not change before the syntax has finished, so we can call it. Example, I press the button, and random number is generated, we catch it to a variable, then I press the keypad to fulfill a number, then I press another button to compare my input number to the variable than contains the random number before.

candrasniper
Автор

7:25 '42' i see what you did there (Hitch hikers guide to the galaxy)

abishekjabez
Автор

nice explanation sir. Excellent presentation

kingshahzad
Автор

i used random number generators in my 6x6x6 rgb led cub to make color changing rain that starts at a random led each time with a random color.

arachnophillic
Автор

how can i make it so that it only generates a number once?

Ctairs
Автор

Your tutorial on the ‘random’ function and the ‘random seed’ function was excellent/ I would like to apply this bit of info to an 8x8x8 LED Cube / if I increased the number of Leds’ to 512 and sent out the A0 to 8 shift registers and at the same time to a layer ( 1 thru 8 ) that produce a random light in the cube at a specified delay . And yes, there is definitely one way to find out :-). Your thoughts?

jamesb.
Автор

I want to use a 4 or 5 digit random access number for each guest at a hotel. These numbers should be 'recognised' by Arduino and transcribed back to the one code that is actually the only true access code to allow access. How can that be done ?

willemnorval