I have a collection with column sequence number(hardcoded numbers) and item name. collection gets the data from excel . Now I have a use case where on button click random number(start, end) gets generated ,it selects the sequence number and item name accordingly and it removes that particular record from collection .
e.g.
sequence number item name
1 item 1
2 item 2
3 item 3
if the generated random number is 2 ,it will remove that particular record from collection .
sequence number item name
1 item 1
3 item 3
Now the issue is if click that button again ,sometimes its generating same random number again .in this case 2 .but now particular record with that number doesn't exists. so how can I sequence that sequence number column in order to avoid this issue.
Thanks in advance
@RezaDorrani your suggestion do matter 🙂