Zusammenfassung der Ressource
Random
- How to import: java.util.Random;
- Instantiation: Random rand = new Random();
- Ops:
- nextInt(): gives you a random integer between 0 - 10 exclusive.
- nextInt(value): gives you a random number between 0 and the value you specify (exclusive)
- nextFloat(): gives you a random float between 0-10
- Uses:
- Generate random values.