Unintentionally.
In an accidental manner; by chance, unexpectedly.
Intentionally, designed specifically for a given purpose.