By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,208 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,208 IT Pros & Developers. It's quick & easy.

how can i write C code that generate random number without using built in code

P: n/a
plz reply,
thanks in advance.
bye
Nov 14 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Sweety wrote:
plz reply,
thanks in advance.
bye


HOMEWORK QUESTION
Nov 14 '05 #2

P: n/a
Sweety wrote:
plz reply,
thanks in advance.
bye


HOMEWORK QUESTION
Nov 14 '05 #3

P: n/a
Em Sun, 04 Apr 2004 20:03:48 +0000, Tom St Denis escreveu:
Sweety wrote:
plz reply,
thanks in advance.
bye


HOMEWORK QUESTION


What question? I don't see any question.

--
Quidquid latine dictum sit altum viditur

Nov 14 '05 #4

P: n/a
Em Sun, 04 Apr 2004 20:03:48 +0000, Tom St Denis escreveu:
Sweety wrote:
plz reply,
thanks in advance.
bye


HOMEWORK QUESTION


What question? I don't see any question.

--
Quidquid latine dictum sit altum viditur

Nov 14 '05 #5

P: n/a
Sweety wrote:
plz reply,
No sweat.
thanks in advance.
No problem.
bye


Bye.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #6

P: n/a
Sweety wrote:
plz reply,
No sweat.
thanks in advance.
No problem.
bye


Bye.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #7

P: n/a
http://benpfaff.org/writings/clc
--
"The way I see it, an intelligent person who disagrees with me is
probably the most important person I'll interact with on any given
day."
--Billy Chambless
Nov 14 '05 #8

P: n/a
http://benpfaff.org/writings/clc
--
"The way I see it, an intelligent person who disagrees with me is
probably the most important person I'll interact with on any given
day."
--Billy Chambless
Nov 14 '05 #9

P: n/a
Sweety wrote:
plz reply,
thanks in advance.
bye

You cannot generate truly random numbers (without an external device) in
the mathematical sense of the word. You can only generate pseudorandom
numbers. For the discussion, google the topics "alternative rand()", etc.

My favourie, although very slow method for generating a sequence of
pseudorandoms in the interval [0,1] is

next_number := after_comma_part_of ((Pi+previous_number)^5)
--
Best regards,
Alex.

PS. To email me, remove "loeschedies" from the email address given.
Nov 14 '05 #10

P: n/a
Sweety wrote:
plz reply,
thanks in advance.
bye

You cannot generate truly random numbers (without an external device) in
the mathematical sense of the word. You can only generate pseudorandom
numbers. For the discussion, google the topics "alternative rand()", etc.

My favourie, although very slow method for generating a sequence of
pseudorandoms in the interval [0,1] is

next_number := after_comma_part_of ((Pi+previous_number)^5)
--
Best regards,
Alex.

PS. To email me, remove "loeschedies" from the email address given.
Nov 14 '05 #11

P: n/a
Sweety wrote:

plz reply,


Oh very well.

--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 14 '05 #12

P: n/a
Sweety wrote:

plz reply,


Oh very well.

--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 14 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.