like below fixes the issue I work with Rand I have two vectors , Is this what are you looking for?
linear search for number vector in c++
By : Krati
Date : March 29 2020, 07:55 AM
around this issue With a true random number generator, the probability of drawing a particular number is not conditional on any previous numbers drawn. I'm sure you've attained the same number twice when rolling dice, for example. rand(), which roughly approximates a true generator, will therefore give you back the same number; perhaps even consecutively: your use of % 10 further exacerbates this.