spur-of-the-moment

adj

1.
in response to an unforeseen need