It's fair to say 99% of such attacks in the history of terrorism is related to Islamic/Muslim. The other 1% are reserved for people with mental illness.
But it is completely unfair to say this is all the muslims fault because in Muslim's beliefs killing innocent citizens is COMPLETELY wrong. These people are being radicalised and can be no longer be treated as muslims even though they think they are. It's just some fucked up people out there spreading these wrong education and it's unfortunate that these people has breeded rapidly.
It's just fucking frustrating that a group of people with fucked up beliefs twisted their Allah's teaching and now any Muslims who have any sort of vulnerability in their mental state can be easily radicalised. I have personally read stories about some people who looked completely normal in the day but secretly building up their attacks in the dark even in my country which is probably one of the safest in the world. It's not their fault they are brainwashed. It's hard to just comprehend why people can't simply get along with each other and live peacefully.