Re: Positive random number



On Tue, 18 Dec 2007 00:43:10 -0800 (PST), deepak
<deepakpjose@xxxxxxxxx> wrote in comp.lang.c:

Hi,

Can someone give the standard function which can create positive
integer value in C?

Other's have talked about "rand()", but I don't see anything in your
post that requires it. Here's a function guaranteed to meet the
requirement you asked for in the body of your message:

int create_positive_integer_value_in_C(void)
{
return 42;
}

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
.