looks almost like 9mm that were loaded into a 40 cal chamber.
I have two questions that sound dumb but bear asking...
Did the cases eject from the pistol?
If so, and you were shooting at a public range, are you certain that's YOUR brass?
I've found some pretty scary stuff on the ground at public ranges before.