Use of random function - c program , C/C++ Programming

Use of random function:

int main(void)

{

   int i,j;

 

      for(j=0;j<150;j++)

      {

     // randomize();

      for(i=0;i<200;i++)

                 printf("%d\n", rand() % MAXINT);

      }

   return 0;

}

 

 

Posted Date: 10/18/2012 6:03:53 AM | Location : United States







Related Discussions:- Use of random function - c program , Assignment Help, Ask Question on Use of random function - c program , Get Answer, Expert's Help, Use of random function - c program Discussions

Write discussion on Use of random function - c program
Your posts are moderated
Related Questions
What if one forget the [] when deleteing array allocated through new T[n]? A: All life comes to a disastrous end. It is the programmer's responsibility not the compiler's to

Call by Reference Passing variables(parameters) to a function in C can be done in two ways - pass by value, also called as call by value and pass by address or also known as ca

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw   Solution:

Define Pure Virtual Function? Why & when it is used?

Structures A structure is a derived data type. It is a combination of logically related data items. Unlike arrays, which are a collection of such as data types, structures can

I want a PROGRAM - Facebook auto like system to increase fans to different fanpage It has in a program that take Facebook mails and passwords from a excel file (.xlsx) for examp

Reusability  Reusability means reusing code written earlier, may be from some earlier project or from the library. Reusing old code not only saves development time, but also sa

Using Figure 10.2 as a model, illustrate the result of each operation in the sequence ENQUEUE.Q; 4/, ENQUEUE.Q; 1/, ENQUEUE.Q; 3/, DEQUEUE.Q/, ENQUEUE.Q; 8/, and DEQUEUE.Q/ on an i

This programming assignment is for use in the LINUX/UNIX environment!! Introduction: System administration often requires custom written programs and tools. One problem a s

decode smugglers are very smart in day by day