Комментарии:
Bro thankyou bro
ОтветитьPeople wondering why the formula worked 💀
ОтветитьAnother tip is to use process id function("getpid()") multiplied by time function to get specific random number from process. So even if you use a script that runs the same program multiply times in the same second, it will generate random different numbers.
ОтветитьIt shows the number of seconds elapsed. Then it is not really random number, it is an increasing sequence of numbers. What if we want to get 500, then 4 then 2100 and so on?
ОтветитьI really appreciate for your teaching that you provide all the bug and solutions ❤
ОтветитьThanks.
ОтветитьNice man..
Ответитьthanks
ОтветитьSome application they pick up the code randomly but some don't which university should I join standford or peninsula
ОтветитьThank you
ОтветитьSUMARRY :
Formula for 0 to n : rand()%n
Formula for m to n : rand()%(n-m+1)+m
where m is the lower limit and n is the upper limit.
i still didnt understand range formula
Ответитьwow, your explanation is fantastic, you just made my learning C programming more enjoyable.
Ответитьnice video great
Ответитьthanks bro. easy to understand . no bullshit , straight away got to the point. love it
ОтветитьCan we generate different random numbers in a single run like if we write this in a for loop that is executing let say 20 times so is there a way to get different random numbers with every iteration of the loop? Actually I tried it with your specified method which is very helpful btw, but I need different random number with every single execution of the loop.
Edit: I got it, We just need to do srand(time(NULL)+i) to get it done, it will change the seed for every iteration. Thank You so much for this video @LearningLad
How to generate complex random numbers
ОтветитьThanks for your video, this help me a lot :D
Ответитьbro thanks you very much
ОтветитьIf i want between 1 to 10 which logic i can you
ОтветитьThank you for debugging my code sir
ОтветитьHats off for your explanation sir
&
You're the only one who says to dislike the video if we don't like it
But I've became a huge fan of your explanation sir. that's really crystal clear sir...thank you for debugging my code sir
THANK YOU!!
ОтветитьCheers mate!
Ответитьwhat font is he using?
ОтветитьHow can i make the program choose randomly from what the user puts in ?
Ответитьgreat video !!!!!
ОтветитьAmazing.
ОтветитьSooo much thank you:)
ОтветитьThanks for your help bro
ОтветитьThank you man you saved me
ОтветитьThank You. I was literally stuck on this rand() function for days. And cussing it too😅😓. And now I know it. Thanks Once again😄♥♥
ОтветитьKak samj ni aaai🤔😑
ОтветитьI would like to ask if the random number is let's say 400, wouldn't the resulting no. equal to 4? or are we to assume that it would always be bigger than that?
ОтветитьThanks man!!!!!!!!!
ОтветитьIf i want to create 100 random values at the same time, they end up being the same. Am i missing something? What can i do to get around this?
ОтветитьYo man, thanks for vid, i think i passed just thanks to you <3
ОтветитьThank you so much, this really helped me with my assingment!!!!!!!
Love you my man😘
how do we make low and upper is double number like 0.50 how do we do
ОтветитьWhat if you need a random number from 1 to 1 million, with a seed 179. The first iteration is 545994 but I can't get it.
I'd like to know how to do this.
Thanks Thanks Thanks
ОтветитьThank you so much!! Please don't thank me for watching :)
Ответить😊 thanks
ОтветитьThank you brother
ОтветитьI want 1 to 10 only but I still get one zero I follow the exact code. But either way ty so much I am gonna use it for a mini-game practice
ОтветитьBro which software you are using
ОтветитьGood job brother ❤️
Ответитьthanks bro
that video was amazing
"It can only generate 1 random number at once "....
If you print that "number" variable more than once , it shows the same numbers...
so this program can only generate only one random number at once....
But previous video where you taught about 1970, Jan 01 time elapsed technique, we could generate more than one random number by printing again and again...this doesn't work, why???
thank you sir
Ответить