[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


This page is part of the web mail archives of SRFI 27 from before July 7th, 2015. The new archives for SRFI 27 contain all messages, not just those from before July 7th, 2015.


would it be beneficial to have the use of and output of the generated
random source, as in (make-random-source) => s, described?
ie, to make it possible for somebody else to generate random floating
point numbers from s it is neccessary to know what the output looks
like (say 0 or 1, or #t or #f), and how to get it (say (s 'bit)).

i admit that this kind of thinking would (ultimatly) lead to the
removal of all but one, (random-source? s), of the random-source
procedures and their replacement by

(s 'randomize)
(s 'state)
(s 'state new-state)

but i still think that the question is worth asking.

moreover, it could be that (s 'bit) should really be (random-source-bit s)
and the whole oo concept could be avoided :-)