14 lines
276 B
Java
14 lines
276 B
Java
|
package main;
|
||
|
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
|
||
|
public class Pioche<Carte> {
|
||
|
private List<CartePiochable> cartesPiochables;
|
||
|
|
||
|
public CartePiochable piocher() {
|
||
|
Collections.shuffle(cartesPiochables);
|
||
|
return cartesPiochables.get(0);
|
||
|
}
|
||
|
}
|