User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 456,006 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,940 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 4 of 4
Search took 0.01 seconds.
Posts Made By: xshashiy
Forum: C Jul 7th, 2005
Replies: 4
Views: 2,598
Posted By xshashiy
Re: not getting non repeating random numbers many times

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,021
Posted By xshashiy
Re: Need help with programming!

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: 2,598
Posted By xshashiy
not getting non repeating random numbers many times

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()
{
int...
Forum: C Jul 4th, 2005
Replies: 5
Views: 3,356
Posted By xshashiy
problem in generating non repeated random numbers

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...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 9:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC