mardi 3 décembre 2019

How can I generate a random number with a specified length in c using rand()

How can I generate a random number with a specified length in c. I have to ask the user for a specified length for two sequences and based off of that responses I generate 2 random numbers of those lengths.

Please enter 2 max lengths for your sequences: 3 6

seq1: 456 seq2 937123




Aucun commentaire:

Enregistrer un commentaire