Analysts say the ruling could force many German states to revise laws on random searches .