So I want to get a random save saved in my game datastore like for example 2 player IDs saved with some data is there a way I can select one of the player ID randomly without using math.random() to get the data
Like for example player 1 ID is 123456789 and the other ID is 987654321 so is there a way to load one of those IDs randomly without using math.random() so I get the data saved under that key
Maintain a list of IDs in its own special key, then select an ID from that list.
Then you can access the data under that ID.
I’m not sure if this is possible. You could try making a Data Store (as an array) that saves the player ID’s of anyone who joins your game. Then get the length of that array and call for a random number between 1 - #TableLength
Edit:
Pragmatically, however, I am not sure how efficient this would be on a macro-scale.
i want to select a random id like if i have those
12346752453
5423542543
5432423523532
i want to select one of them randomly not specficly
that my work its not a bad idea