Problem while picking from a list

Hello, I’m trying to make a system so the same item can’t be picked by “random item in list” twice in a row.
Thanks for your advices.