I have a programming assignment focused on these functions due in a few days and you just taught me everything i need to know about random number generation for the assignment. Thank you so much!
And now you can ask: "Why do i need rand function?". Many simulations and scientific studies need to repeat the same set of random numbers. rand() will always do that if you don’t seed the random number generator.
Can you help me to create a random array using rand (seed) of 10,00,000 size for linear search to find time complexity, Sir. Pls help me to create the array using rand of that size.
Could you share what you use to do screen recording and providing that yellow highlight? I have to record a video for my C class. Excellent explanation on the topic :)
I've used screen capture in OBS Studio for both Mac and Windows. Whether the cursor is highlighted or not is a setting in OBS. For Windows, I've also used VSDC, but after learning OBS, I don't think I'm going back.
I want to create an array with different numbers 0 to 9 but I dont want same numbers in array. (for ex I dont want {0,2,3,6,2,0,1,4,3}) Can u guys help me please ?
The sequence of random numbers generated will be different on each run after using srand but is it possible to get a same number which was generated in previous run of the program as in a duplicate?
//for c++ const short minValue = 1; //set to any number you want const short maxValue = 6; //set to any number you want srand(time(0)); int randomNumber = (rand() % (minValue - maxValue)) + 1; cout
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 for this helpful video! In my program RAND_MAX generated is 2147483647. Doe random_max depend on compiler since now int in most compilers is of 4 bytes?
Me having any study related problems
An Indian Guy on UA-cam: "Who's summoned me now?"
Thanks mate!
I have a programming assignment focused on these functions due in a few days and you just taught me everything i need to know about random number generation for the assignment.
Thank you so much!
Best of luck!
Now, I also have the same type of assignment...
Wait I have same type of assignment too that's why I am here
WoW...You explained from scratch..
Got a crystal clear idea.
Thank you sir..
You are most welcome
thank you very much, your explanations are very good and I finally understand how this function works!
Glad this video helped you :)
Thankyou so much for your efforts to explain it in much easier way... Great job!
Thanks
the way you explained the concept was super clear.
Thank you so much!!!!!!!!!
You're very welcome!
Finally, you made me understand that tricky little thing!!!!
Glad my video helped you
this is so enlightening. you're a good teacher
thank you :)
this is what we call full explanation .😍
Thank you so much 😀
And now you can ask: "Why do i need rand function?". Many simulations and
scientific studies need to repeat the same set of random numbers. rand() will always
do that if you don’t seed the random number generator.
Thanks!!! I think i almost get it! I should watch the video one more time))))
Great!
best way of explaining, thanks dude
Pleasure :)
Great explanation sir, thank you a lot
Btw congratulations for 100 comments, you truly deserve a lott
Pleasure 😀
You're better than my professor...
Ha ha
Thanks :)
Thank you for such a awesome video
You are so welcome!
Bro you are going to hit the sky high followers soon.
Amazing video
Thank you so much 😀
your c++ and c courses are superb bro
Glad you think so!
Thank you very much it's straight to the point and very useful !!!
Glad this video helped you :)
Solid lesson. Thanks 🙏🏼
My pleasure!
damn You are the most amazing man on this planet! you explain effortlessly! Big big thanks
pleasure :)
yout just helped me so much, thanks all
Glad I could help!
awesome expalanation , thank u mr. anil shetty !!!
pleasure :)
Thank you really i followed all the your steps and it will be installed 🙏🏻❤️
Yup :)
This was really helpful, clear explanation
thank you :)
This was the best explanation. Thank you so much sir.
You are most welcome
Excellent, thank you very much!
most welcome :)
Just amazing bro thanks
Most welcome :)
Great explanation. Thank you
most welcome :)
A very clean and simple explanation for the topic. I have been struggling with this for some time now. But so glad to have found the video.
Glad it helped!
Great explanation
Thanks a lot
You're welcome!
Your explanation was really good.
Thanks to you I understood how the fucking function works.
YOU SAVED ME THANK YOU SO MUCH
Pleasure :)
Very cool video! Can't wait for the next part with range as parameter :D
very good explanation!
Glad you think so!
CONGRATULATIONS ON THE VIDEO
thank you :)
I like video and I have hit the like button
thanks
Thank you so much sir...very well explained :)
Most welcome!
Thank you so much, this was very helpful!
You're very welcome!
Thank you for your clear and concise explanation!!
thanks for helping me study final
You are most welcome
Greatly explained, thank you.
Pleasure
Thanks a lot , you're the best bro
Pleasure :)
Good
It was really helpful
Glad it helped
Thank you for this video💕It was really helpful!
Well explained thank you very much :D
You're welcome!
awesome logic man
Thank you
Very much helpfull video sir
thanks for the explanation
You're welcome
beautifully explained...
Thank you so much 🙂
too many ads but it helped me understand !
I don’t think I have inserted many ads
Nowadays youtube plays 2 ads continuously
I will check it
Glad that my video helped you
Great explanation
thanks alot 🥰
most welcome :)
great teacher
Thank you! 😃
give this man an oscar
Can you help me to create a random array using rand (seed) of 10,00,000 size for linear search to find time complexity, Sir.
Pls help me to create the array using rand of that size.
help me a lot really appreciate
Awesome 😍😍
Thanks 🤗
Please teach random number generation by using Norma distribution
i will try to make a video :)
Super well and good Sir
Thank you :)
Thanku so much sir
welcome :)
Thank you so much
You're most welcome
Could you share what you use to do screen recording and providing that yellow highlight? I have to record a video for my C class. Excellent explanation on the topic :)
I've used screen capture in OBS Studio for both Mac and Windows. Whether the cursor is highlighted or not is a setting in OBS. For Windows, I've also used VSDC, but after learning OBS, I don't think I'm going back.
you are good
Thanks
I want to create an array with different numbers 0 to 9 but I dont want same numbers in array. (for ex I dont want {0,2,3,6,2,0,1,4,3}) Can u guys help me please ?
I think its not possible, what is possible is to take input from user
@@yesitsme6 I have solved it. Thank you :)
@@Ap-ui6kk Can u send me the code of how u do that? My tests comming
The sequence of random numbers generated will be different on each run after using srand but is it possible to get a same number which was generated in previous run of the program as in a duplicate?
//for c++
const short minValue = 1; //set to any number you want
const short maxValue = 6; //set to any number you want
srand(time(0));
int randomNumber = (rand() % (minValue - maxValue)) + 1;
cout
Cant you use a pointer to address to seed? Each compile should be different no?
can we save the random number in a variable so we create a varification process in which user verify the random number
yes you can do that :)
@@LearningLad I tried but [if()] function is not working when int userinput == rand()
how to find the given dataset random number use, what type of algorithm is used?
Thx Legend!!
How would you reset the count so that if I was to loop this function 5 times the random numbers don’t add up
Please how can i start by number negative .exp : -7 ----> 10
Thanks guy
Thanks!!!!!
Welcome!
Sir the srand ask for which number the max number or the start number
If it ask for start number then how the rand() returns the number which less then srand value.
Is it the same for c++
very helpful
Glad you think so!
can you explain about your channel logo?
can you tell how to generate random position for shapes in c I am really struggling with that thing
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.
Hi. I'll just ask, where can I find the random number generator compiler?
I've used seed and rand function in loop to generating random numbers but i got the same value from 1 loop.
thank you
Pleasure 😃
Awesome
thanks
thanks bro
Welcome
I want these function to execute only once each time it is called how to do that?
thanks
Welcome
why does mine and your computer prints the same random number?
nice
🔥🔥🔥🔥🔥🔥❤
thanks
why null you say??
I think null puts the time in seconds from 1-1-1970 if u had to use some parameter then I wouldn't be random(the same problem)
How to generate random alphabet
indian guy carry
Thanks for this helpful video! In my program RAND_MAX generated is 2147483647. Doe random_max depend on compiler since now int in most compilers is of 4 bytes?
brilliant explanation, thank you so much
You're very welcome!
thank you so much!! this was really useful.
You're very welcome!
Thanks bro
Welcome
Thank you
You're welcome
thank you
You're welcome
thanks brother
Welcome