If you like the video, share it with your friends on these social sites:

 

Title: C Programming Tutorial - 12 - Random Number Function

Added: Apr 9, 2009

Author: thenewboston

Duration: 6:54

Description:
Tutorial on how to make a random number generator

Related Videos:

Videos related to 'C Programming Tutorial - 12 - Random Number Function'

Channel: Howto

Tags: random  number  generator  function  programming 



random  number  generator  function  programming 

Youtube Comments: 201

icemanbipin Says:

Feb 10, 2012 - What's the use of return 0??

bondservant4Him Says:

Feb 12, 2012 - returns 0 on successful compiling and control back to operating system

killianb921 Says:

Feb 22, 2012 - thanks

MultiEddie1991 Says:

Feb 24, 2012 - i got the same number as bucky.....doesnt seem so random now does it?? lol

daniell1993 Says:

Feb 28, 2012 - how can i make it not repeating?

SuperMatthew345 Says:

Mar 2, 2012 - Thanks. 

esplonky6502 Says:

Mar 3, 2012 - 32 bit doesn't mean the highest number is 32,000. i want to learn C from someone who actually knows something about computers.

hahahaperson Says:

Mar 7, 2012 - thank yousaved right here!

hahahaperson Says:

Mar 7, 2012 - nevermind t sux always returning same number

axers22 Says:

Mar 14, 2012 - yeah 41 is pretty randome :D

Damanganerd Says:

Mar 19, 2012 - why does 41 repeat?

twilightskys93 Says:

Mar 21, 2012 - i dont get it? why does 41 pop up. it doesnt make sense

Ferzurio Says:

Mar 30, 2012 - Every time you run it, you get the same number as before.

MrHeadcave Says:

Apr 2, 2012 - The first random number is always 41, i think

dasten123 Says:

Apr 7, 2012 - if you make a dice game using this function, you would be able to guess the right number and earn a lot of money^^

ajosep12 Says:

Apr 15, 2012 - Thumbs up if bucky is god! :D

ranjanarr Says:

Apr 22, 2012 - you need to include stdlib.h

Rhusker88 Says:

Apr 22, 2012 - @icemanbipin theres kind of a tradition where if a function returns zero, all was well. If it gives back a different number, something went wrong (This tradition isn't in EVERY function, though.)

vexx4111 Says:

Apr 25, 2012 - thanks for that cuz it wouldnt work the program must of changed a bit or something cuz wen he aslo talked about getch(); it didnt work you have to put getchar();

youmair3d Says:

May 13, 2012 - Correcto

rauldanielsolis Says:

May 26, 2012 - I ran it 5 times all times I got 41. Something may be wrong.

DnZpcGaming Says:

May 27, 2012 - thid should give you random numbers =)int main(void){srand(time(NULL));rest of the code.

Shopping | prank calls | Wholesale products | english movies | prank calls | proxy | links | prank call

Topfacebookvideos funny arabic videos

Privacy Policy