@ThreadSafe public class SlotCode extends Object
Generate a fixed-capacity slot of random numbers. Consume an empty slot each time a pseudo-random number is generated. Reset the current slot if there are no empty slots.
| Modifier and Type | Field and Description |
|---|---|
int |
size |
public SlotCode(int size)
public SlotCode(int size,
Random rand)
Copyright © 2024. All rights reserved.