In my game I need to create an object randomly in 16 positions. For example, take x positions as 10, 20, 30, 40 and y positions as 10, 20, 30, 40. Now, there are 16 (4*4) possible positions. I want construct 2 to randomly pick x and y positions from the given set of values to create the object. The combination could be (x=10, y=30) or (x=20 or y=40). The combination could be any given value from x and any given value from y, and construct 2 should randomly pick a value from x and y, and create the object at the randomly selected combination of x and y.
Is there anyway to do that?