mercredi 27 juillet 2016

Assign a value to Integer between two constant values?

Lets say I have 3 Integers:

int a, b, c;
b = 25;
c = 10;

Now I want a to be either 25 or 10 but by random not something like:

a = b;

I want something like in if statement:

a = b || c;

How can I achieve it?




Aucun commentaire:

Enregistrer un commentaire