I want to generate a random number in an SC and check that it hasn't already been generated (meaning i want to generate X unique random numbers) i'm thinking about what is the best way to go about it, using a Managed Vec means that every time i have to read most of the Vec to check if it is contained in it. Any suggestions on how to do this with the lowest gas possible?
maybe i can divide the range by the number of numbers i need to generate?