Random Number Generation | C Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Best explanation ever.Im a beginner and have understood this well thanks. Subscribed

cupidscornerke
Автор

Thank you so much for replying my comment including this video link! Now I understand what srand(), srand(2), srand(time(NULL)) and rand() mean!

JH-ityr
Автор

Great! But what 5:41
If I want numbers from 1 to 20 including 1 and 20 because my teacher asked me this and I didn't know how to do it

This was his question fill in the black
Int random = blank + rand()%blank

Including 1 and 20 how would that be possible ? Not just 20 any number

Salamanca-joro
Автор

Brilliant explanation! Thank you a lot!

CosmJJ
Автор

what if we want float numbers like random numbers between 0 and 1

yassinemichaal
visit shbcf.ru