*#include<stdio.h>*
*
*
*int main()*
*{*
*
*
*int x,a,b,i,n;*
*printf("\n Enter the value of n");*
*scanf("%d",&n);*
*printf("\n Enter Psoitive integer a");*
*scanf("%d",&a);*
*printf("\n Enter the positisve integer b");*
*scanf("%d",&b);*
*for(i=1;i<=15;i++)*
*{*
* n= (a*n + b);*
* printf("%d\n",n);*
*}*
*return 0;*
* *
* }*

Random code generator ...
Correct me if i am wrong ....
thanks

On Sun, Jul 31, 2011 at 3:19 PM, Someshwar Chandrasekaran <
[email protected]> wrote:

> On Sun, Jul 31, 2011 at 3:09 PM, Puneet Gautam <[email protected]>
> wrote:
> > Can we write a code to generate random numbers without using rand
> function..?
> >
> > Pls help me on this!!
>
> How about operating on some garbage value?
>
> Regards,
> B.C.Someshwar
>
>
> --
> 'Talk sense to a fool and he calls you foolish.' - Euripides
>
> My Blog:  somsekaran.wordpress.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
Regards
Rajeev N B <http://www.opensourcemania.co.cc>

"*Winners Don't do Different things , they do things Differently"*

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to