jeudi 9 juillet 2020

How to randomize a c array like hex?

how could i initialize x array randomly with values like this:

int x[32] = {0xe901,0x172c,0x68e1,0x0c9e,0xc343,0x5bbe,0x9ace,0x0736,
             0x8ad2,0xcb62,0x4983,0xcfcf,0x90ea,0xefd2,0x0e82,0xf8e2,
             0x46eb,0xc662,0xae46,0xad5b,0x1268,0xbdbc,0xc731,0x53e7,
             0x42d9,0xacea,0xb106,0x6b70,0xd7a9,0xe359,0xa3be,0x0d86}; 



Aucun commentaire:

Enregistrer un commentaire