Hello,

Sign up to join our community!

Welcome Back,

Please login to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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?