How to avoid duplicate users when I am using get_users?

I think it’s arguments issue.

I recommend not to use role & role__not_in together rather either use only role OR use role__in & role__not_in combination. Also check your role param spelling. (see more on role)

2ndly orderby param rand is not valid according to codex (see here) so use proper param.