I am developing an app for android and in this app i want to generate two random two digit hex values like:
1. two digit random hex value (ex. AA, 3A, 4E…)
2. two digit random even hex value (ex. 12, 1A… not 13, 35, 1B, 2D…)
and set them to textviews.
Setting to textview easy, but i couldn’t find a way to generate a two digit random even hex number.
I hope my question is clear.
I don’t know about the actual android API, but you could (respectively the two cases you mentioned):
and then print them in hexadecimal format.