class: RandomGenerator
authorClaus Gittinger <cg@exept.de>
Fri, 02 Mar 2018 17:07:16 +0100
changeset 4605 5d774868d237
parent 4604 1dd4f7f9e215
child 4606 1897721b87eb
class: RandomGenerator reorganized: in the past, Random was a very weak generator (based on GNUSmalltalk), and RandomGenerator was the good one to use. Changed to make Random default to the good one, and renamed the old Random to RandomGNUSmalltalk (to be obsoleted sooner or later). Also refactored common code into Random, for use by other subclasses. added: #maxInteger removed: #nextIntegerBetween:and: class: RandomGenerator class comment/format in: #new #update:with:from:
bc.mak
--- a/bc.mak	Fri Mar 02 17:07:14 2018 +0100
+++ b/bc.mak	Fri Mar 02 17:07:16 2018 +0100
@@ -229,6 +229,7 @@
 $(OUTDIR)LazyCons.$(O) LazyCons.$(C) LazyCons.$(H): LazyCons.st $(INCLUDE_TOP)\stx\libbasic\Collection.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\SequenceableCollection.$(H) $(INCLUDE_TOP)\stx\libbasic2\Cons.$(H) $(STCHDR)
 $(OUTDIR)LineNumberReadStream.$(O) LineNumberReadStream.$(C) LineNumberReadStream.$(H): LineNumberReadStream.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\PeekableStream.$(H) $(INCLUDE_TOP)\stx\libbasic\Stream.$(H) $(INCLUDE_TOP)\stx\libbasic2\FilteringStream.$(H) $(STCHDR)
 $(OUTDIR)PostscriptPrinterStream.$(O) PostscriptPrinterStream.$(C) PostscriptPrinterStream.$(H): PostscriptPrinterStream.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\Stream.$(H) $(INCLUDE_TOP)\stx\libbasic2\PrinterStream.$(H) $(STCHDR)
+$(OUTDIR)RandomGNUSmalltalk.$(O) RandomGNUSmalltalk.$(C) RandomGNUSmalltalk.$(H): RandomGNUSmalltalk.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\Stream.$(H) $(INCLUDE_TOP)\stx\libbasic2\Random.$(H) $(STCHDR)
 $(OUTDIR)RandomGenerator.$(O) RandomGenerator.$(C) RandomGenerator.$(H): RandomGenerator.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\Stream.$(H) $(INCLUDE_TOP)\stx\libbasic2\Random.$(H) $(STCHDR)
 $(OUTDIR)SharedQueue.$(O) SharedQueue.$(C) SharedQueue.$(H): SharedQueue.st $(INCLUDE_TOP)\stx\libbasic\Collection.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic2\Queue.$(H) $(STCHDR)
 $(OUTDIR)TSMultiTree.$(O) TSMultiTree.$(C) TSMultiTree.$(H): TSMultiTree.st $(INCLUDE_TOP)\stx\libbasic\Collection.$(H) $(INCLUDE_TOP)\stx\libbasic\KeyedCollection.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic2\TSTree.$(H) $(STCHDR)