Forum: C Dec 18th, 2006 |
| Replies: 7 Views: 3,750 Thanks so much for your replies:
Infarction, actually, i just wrote a sample code that i was trying.
So, sorry for the typos, yes its <10 instead of <12.
# If the sum gets over 1 before i... |
Forum: C Dec 18th, 2006 |
| Replies: 7 Views: 3,750 Sorry, forgot to add my code as per the rules.
And also, missed one part, i want inverse of the sum of random numbers which is less than 1 but greater than 0.75
such as :
sum = 1/23+1/32...... |
Forum: C Dec 18th, 2006 |
| Replies: 7 Views: 3,750 Hi,
Would really appreciate if someone can help me.
Need to generate 10 random numbers such that their sum is less than 1.
thanks so much in advance
manu |