Random Image generator

I'm trying to create an app that shows random images, and each time you get the same image in both of the two image components, the Matches amount should increase by 1. Otherwise, the Mismatches amount should increase by 1. I attached my code, can anyone help?


Have your value procedure return the random selection, as shown.

Change this:
blocks (1)

blocks (2)


1 Like

This is what I have now, when I press the button I get this error "Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference"

Change the button to Click instead of LostFocus

1 Like

Works perfectly now, Thank you so much!

Your welcome.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.