|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dolben.MarkN.RandomDeal
class RandomDeal
This is a pseudorandom order generator for some number integers. For example, if the number of items is 10, the sequence obtained by calls of next() will be some pseudorandom permutation of 0 to 9.
Constructor Summary | |
---|---|
RandomDeal(int n)
constructs a new pseudorandom order generator |
Method Summary | |
---|---|
(package private) int |
next()
gets the next item in the sequence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
RandomDeal(int n)
n
- the number of items in the sequenceMethod Detail |
---|
int next()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |