Forum: C Jul 7th, 2005 |
| Replies: 4 Views: 4,048 I have tried that but it does not work. it produces same pattern of numbers.
regards
shashi |
Forum: C Jul 6th, 2005 |
| Replies: 5 Views: 2,265 hi here is the solution for your problem.
#include "stdio.h"
#define NUM_CUSTOMERS 3
main()
{
int num_hours ,customers;
float charge_min = 2.0,rate = 0.5 , charge_max = 10.;
float... |
Forum: C Jul 6th, 2005 |
| Replies: 4 Views: 4,048 hi
i want to generate non repeated random numbers many times. for that i m using the following code.
#include "sys/types.h"
#include "stdio.h"
#define MAX 200
#define N 20
main()
{... |
Forum: C Jul 4th, 2005 |
| Replies: 5 Views: 4,440 i want to generate non repeated random numbers from 0 to 156. here is the code for the purpose. but when i try to generate the random numbers more then 1 time by using a for loop, the same pattern on... |