[PLUG] Random number ( integer code )
Shrinand Javadekar
shrinand at gmail.com
Tue Sep 29 13:20:18 IST 2009
On Mon, Sep 28, 2009 at 12:14 PM, Suraj Swami <suraj.g.swami at gmail.com> wrote:
> Hi,
>
> I was trying to generate random number integer in CPP ( gcc compiler ) using
> rand() function. But it is giving some error. I have tried a few things.
> Which did not work. As I am not at my home PC right now hence I am unable to
> tell the error I am facing.
>
> But can any one suggest a code to generate random numbers without using
> rand() function.
>
> Thanks in advance.
>
>
>
> Regards,
> Suraj Swami,
> _______________________________________
> Pune GNU/Linux Users Group Mailing List
>
This should help:
http://linux.die.net/man/3/rand
More information about the Plug-mail
mailing list