From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd40601768eaf8fd X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Array of Variant Records Question... Date: 1999/09/23 Message-ID: <7sdcih$6s9$1@nnrp1.deja.com>#1/1 X-Deja-AN: 528477277 References: <7r5vh3$imu1@svlss.lmms.lmco.com> <37d6a45c@news1.prserv.net> <7rrmqd$l89@drn.newsguy.com> <37E922DE.9007776F@mitre.org> X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Thu Sep 23 14:13:50 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-09-23T00:00:00+00:00 List-Id: In article <37E922DE.9007776F@mitre.org>, "Robert I. Eachus" wrote: > Robert A Duff wrote: > > > I don't know much about the theory of these things, but I was under the > > impression that Random can never ever return the same value twice in a > > row. Robert Eachus or somebody can tell us for sure. > > See previous post. There is a major distiction here between a > floating-point generator and an integer or fixed-point generator. In an > idealized enivronment, a floating-point generator would have zero chance > of > returning the same value twice in a row. You mean "real" instead of "floating-point", please do not use floating-point to mean the real numbers of mathematics, they are quite different. The term floating-point should be reserved to computer number systems, which are not in any sense non-ideal. They have well defined semantics which just happen to be different from those of real arithmetic. Since we never have real arithmetic on computers, talking about this case is a red herring that has nothing to do with anything we are interested in here. > But in a computer environment where > floating point values are represented by a finite set of values, there > should be a small but finite probability that two succesive values are > the same. Yes, and that is what is important, and to say it again, there is nothing "non-ideal" about this situation. Thinking of computer floating-point as a non-ideal approximation of real arithmetic is helpful only at a very simple level of abstraction, and is not useful for serious numeric work. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.