'Randomly return items in array based on number

I'm trying to randomly display items from an array and I've been able to get it so that one item displays at random, now I want it to display a random number of items based on a number that I put in e.g when I input 2 I want 2 random items, when I input 5 I want 5 random items, etc... How'd I go by this?

Code

const counter = 2; // Number of items I want to show
const Accounts = accountsData.sort(() => Math.random() - Math.random()).find(() => true); // This displays only one random item

<div className="text-area">
  {"Email: " + Accounts.email + " | Password: " + Accounts.password + " | Country: " + Accounts.country + " | Current Plan: " + Accounts.currentPlan + " | Has UHD: " + Accounts.hasUHD + " |  Max Streams: " + Accounts.maxStreams + " | Payment Method: " + Accounts.paymentMethod}
</div>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source