Stream of random numbers

Exercise 3.6 discussed generalizing the random-number generator to allow one to reset the random-number sequence so as to produce repeatable sequences of ''random'' numbers. Produce a stream formulation of this same generator that operates on an input stream of requests to generate a new random number or to reset the sequence to a specified value and that produces the desired stream of random numbers. Don't use assignment in your solution.


    # Marat
    2 weeks ago

    Those tests imply a rather questionable implementation of the proc. Why the streams cannot just fully match

Authentication required

You must log in to post a comment.

Login