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
Abstract Classes Abstract classes are the classes, which are written just to act as base classes. Consider the following classes.                 class base

the issue of oil spills


How does placing some code lines between comment symbols help in debugging the code? - Placing comment symbols /* */ around a code separates some code that coder believes might


In the final project assignment you are asked to develop an OOP C++ class hierarchy for derivative pricing, using the binomial tree and Black-Scholes option pricing methods. You wi

c++ program to to implement multiple stacks using single array

Question 1 Describe the theory behind class templates and function templates along with relevant programming examples Question 2 With the help of suitable programming example

Consider the following example: int max(int x, int y)                  {                                 return ( x > y) ? x : y ;                  }   float max

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome