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?

50e97242f0cdb14724052c3daa3c8686f0365cec_2_690x245

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

Change this:
blocks (1)

To:
blocks (2)

Mike.

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.
Mike.

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