Random number generator without repeating numbers <p>I am trying to create a random number generator without repeating numbers {0 - 7}.</p> <p>im getting a seg fault error here, and im pretty sure im allocating all the memory correctly there. One solution that i found that works occasionally is if i set shuffledbracket parameter size to 9. however since it has one extra memory it puts in an extra 0. any ideas on how i could get my array to only have a parameter size of 8 without a seg fault error?</p>