Random seed generation for data table characters

Hello, I have been looking all week for a solution, hopefully I can get some guidance.

You know how when you start a new game of Animal Crossing, the game will randomize which 2-3 animals are chosen for the town?

I’m looking to do something similar for a visual novel, where when a new game starts a data table of characters (lets say 2 out of 30) are chosen via random seed to interact with the player.

Any tutorials, documentation or advice would be greatly appreciated. Thank you.

This is a sample of how you can access a random value from a data table, customize it to your use. It is relatively easier in cpp, same steps a followed. You firstly have to generate a random number from 0 to max index range. Then, you can access data table as an array and retrive the value at that index.