Children in second and fourth grade with a diagnosis of ADHD ( n = 104 ) were randomly assigned to neurofeedback ( NF ) ( n = 34 ) , cognitive training ( CT ) ( n = 34 ) , or control ( n = 36 ) conditions .