Compare commits

...

3 Commits

Author SHA1 Message Date
artur-kalimullin
a5fe686016 Merge remote-tracking branch 'origin/Lab3' into Lab3 2024-06-16 13:49:26 +04:00
artur-kalimullin
916ebee85d Последняя правка 2024-06-16 13:48:57 +04:00
artur-kalimullin
7924f3a68e Конец 2024-06-16 13:47:27 +04:00

View File

@ -21,7 +21,8 @@ public class Constructor<T extends EntityAirCraft, U extends IDrawEngine> {
public DrawningAirCraft getRandomAirCraft() { public DrawningAirCraft getRandomAirCraft() {
Random rnd = new Random(); Random rnd = new Random();
int entityIndex = rnd.nextInt(0, 2);
int entityIndex = rnd.nextInt(0, 3);
int engineIndex = rnd.nextInt(0, 3); int engineIndex = rnd.nextInt(0, 3);
T entity = entitiesList.get(entityIndex); T entity = entitiesList.get(entityIndex);