From: Hassan B. <ba...@en...> - 2013-11-26 05:08:28
hi
anybody can help how to use srand() in this compiler ??
Best Regards,
Hassan Barjini,
Ph.D Assistant Professor,
Dept. Computer Engineering
Imam Khomeini International University,Iran
Hi Hassan,
This link may help you:
http://cboard.cprogramming.com/c-programming/132362-random-number-generator-srand.html
maybe this evening I will try to run a small example.
Regards
Rodolfo d'Ettorre
Date: Tue, 26 Nov 2013 08:38:15 +0330
From: ba...@en...
To: dev...@li...
Subject: [Dev-C++] about srand()
hi
anybody can help how to use srand() in this compiler ??
Best Regards,
Hassan Barjini,
Ph.D Assistant Professor,
Dept. Computer Engineering
Imam Khomeini International University,Iran
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htmhttps://lists.sourceforge.net/lists/listinfo/dev-cpp-users
From: KRISHNAN RA <kri...@ou...> - 2013-11-27 01:57:41
You have to initialize the randomization with the following command. This you can do immediately after opening main(). srand(time(NULL));
there after each time you can take a seed from rand() command and equate it to an integer or long variable.
The below link clears it beyond doubt.
http://www.cplusplus.com/reference/cstdlib/rand/?kw=rand
RegKRA
From: rod...@ho...
To: ba...@en...; dev...@li...
Date: Tue, 26 Nov 2013 06:18:45 +0000
Subject: Re: [Dev-C++] about srand()
Hi Hassan,
This link may help you:
http://cboard.cprogramming.com/c-programming/132362-random-number-generator-srand.html
maybe this evening I will try to run a small example.
Regards
Rodolfo d'Ettorre
Date: Tue, 26 Nov 2013 08:38:15 +0330
From: ba...@en...
To: dev...@li...
Subject: [Dev-C++] about srand()
hi
anybody can help how to use srand() in this compiler ??
Best Regards,
Hassan Barjini,
Ph.D Assistant Professor,
Dept. Computer Engineering
Imam Khomeini International University,Iran
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htmhttps://lists.sourceforge.net/lists/listinfo/dev-cpp-users
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htmhttps://lists.sourceforge.net/lists/listinfo/dev-cpp-users