If program is run multiple times within the same second, rand() will generate the same value because we're seeding with the same value each time. How to fix this sir ?
We would need to randomly select two row and two column indexes and do swaps between the values at these index pairs in order to shuffle the 2D array. I will add this to my list of video ideas. :-)
I always come back to this channel time to time for refreshing C stuff. Great channel man!
I’m glad to hear you enjoy the channel and are a “repeat customer”. :-)
Great tutorial! Thanks!
Thank you very much, and you’re welcome! :-)
Thanks! I love you dude❤
You’re very welcome! :-)
how can I unshuffle the shuffled array?
By sorting. The easyest way is to perform a bubble sort
If program is run multiple times within the same second, rand() will generate the same value because we're seeding with the same value each time. How to fix this sir ?
I think I’m going to make a video about this very soon, I think it’s a good question, I’ll post it here when it is done. :-)
I made this video to answer your question. :-) I hope you enjoy it: th-cam.com/video/zHZx9ByTo2s/w-d-xo.html
@@PortfolioCourses Thank you so much : ) You are the best - Long live you.
How can we shuffle for example a 2D array?
We would need to randomly select two row and two column indexes and do swaps between the values at these index pairs in order to shuffle the 2D array. I will add this to my list of video ideas. :-)
@@PortfolioCourses I will try it, thank you! You do very helpful and excellent work!
@@tsad4337 You're welcome! 😀
I really like your videos
I'm happy to hear that, thank you! :-D
Thank you!!!
You're welcome! :-D
great😍
Thank you!
Amazing
I’m glad you enjoyed it! :-)