Search:

Type: Posts; User: ozzyman

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    862

    Re: Randomised buttons

    why didn't you just loop through your elements like you did before?



    for (int a = 0; a < 40; a++) {
    for (int b = 0; b < 40; b++) {
    ...
  2. Replies
    4
    Views
    862

    Re: Randomised buttons

    Because $targets is set to 2, and you only loop while $targets is greater than 0, so your loop runs twice and randomly selects a single button each time.

    In total a maximum of 2 buttons may be...
Results 1 to 2 of 2