mardi 24 novembre 2020

How to generate a number that hasn't been generated yet? [duplicate]

So I'm writing a code in C++ that reads a certain amount of lines from a text file and randomly gives me the contents of five random ones. However there's times where the same line is repeated in the same sequence. Is there a way to not repeat the same line within a sequence?




Aucun commentaire:

Enregistrer un commentaire