class SampleData {

  private static final List<PlayerDetails> PLAYERS;
  private static final SecureRandom RANDOM = new SecureRandom();

  static {
    PLAYERS = List.of(
        new PlayerDetails("john@google.com", "312-342", "+3242434242"),
        new PlayerDetails("mary@google.com", "234-987", "+23452346"),
        new PlayerDetails("steve@google.com", "833-836", "+63457543"),
        new PlayerDetails("wayne@google.com", "319-826", "+24626"),
        new PlayerDetails("johnie@google.com", "983-322", "+3635635"),
        new PlayerDetails("andy@google.com", "934-734", "+0898245"),
        new PlayerDetails("richard@google.com", "536-738", "+09845325"),
        new PlayerDetails("kevin@google.com", "453-936", "+2423532"),
        new PlayerDetails("arnold@google.com", "114-988", "+5646346524"),
        new PlayerDetails("ian@google.com", "663-765", "+928394235"),
        new PlayerDetails("robin@google.com", "334-763", "+35448"),
        new PlayerDetails("ted@google.com", "735-964", "+98752345"),
        new PlayerDetails("larry@google.com", "734-853", "+043842423"),
        new PlayerDetails("calvin@google.com", "334-746", "+73294135"),
        new PlayerDetails("jacob@google.com", "444-766", "+358042354"),
        new PlayerDetails("edwin@google.com", "895-345", "+9752435"),
        new PlayerDetails("mary@google.com", "760-009", "+34203542"),
        new PlayerDetails("lolita@google.com", "425-907", "+9872342"),
        new PlayerDetails("bruno@google.com", "023-638", "+673824122"),
        new PlayerDetails("peter@google.com", "335-886", "+5432503945"),
        new PlayerDetails("warren@google.com", "225-946", "+9872341324"),
        new PlayerDetails("monica@google.com", "265-748", "+134124"),
        new PlayerDetails("ollie@google.com", "190-045", "+34453452"),
        new PlayerDetails("yngwie@google.com", "241-465", "+9897641231"),
        new PlayerDetails("lars@google.com", "746-936", "+42345298345"),
        new PlayerDetails("bobbie@google.com", "946-384", "+79831742"),
        new PlayerDetails("tyron@google.com", "310-992", "+0498837412"),
        new PlayerDetails("tyrell@google.com", "032-045", "+67834134"),
        new PlayerDetails("nadja@google.com", "000-346", "+498723"),
        new PlayerDetails("wendy@google.com", "994-989", "+987324454"),
        new PlayerDetails("luke@google.com", "546-634", "+987642435"),
        new PlayerDetails("bjorn@google.com", "342-874", "+7834325"),
        new PlayerDetails("lisa@google.com", "024-653", "+980742154"),
        new PlayerDetails("anton@google.com", "834-935", "+876423145"),
        new PlayerDetails("bruce@google.com", "284-936", "+09843212345"),
        new PlayerDetails("ray@google.com", "843-073", "+678324123"),
        new PlayerDetails("ron@google.com", "637-738", "+09842354"),
        new PlayerDetails("xavier@google.com", "143-947", "+375245"),
        new PlayerDetails("harriet@google.com", "842-404", "+131243252")
    );
    var wireTransfers = new InMemoryBank();
    PLAYERS.stream()
        .map(PlayerDetails::getBankAccount)
        .map(e -> new SimpleEntry<>(e, RANDOM.nextInt(LotteryConstants.PLAYER_MAX_BALANCE)))
        .collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue))
        .forEach(wireTransfers::setFunds);
  }

  /**
   * Inserts lottery tickets into the database based on the sample data.
   */
  public static void submitTickets(LotteryService lotteryService, int numTickets) {<FILL_FUNCTION_BODY>}

  private static PlayerDetails getRandomPlayerDetails() {
    return PLAYERS.get(RANDOM.nextInt(PLAYERS.size()));
  }
}

    for (var i = 0; i < numTickets; i++) {
      var randomPlayerDetails = getRandomPlayerDetails();
      var lotteryNumbers = LotteryNumbers.createRandom();
      var lotteryTicketId = new LotteryTicketId();
      var ticket = new LotteryTicket(lotteryTicketId, randomPlayerDetails, lotteryNumbers);
      lotteryService.submitTicket(ticket);
    }
  
<no_super_class>