Using attachInterrupt() and delay()

I’m trying to make an input (eg. button) turn on an LED(let’s say LED1) after a random delay(), but I want to attach an interrupt so that if the same input is pressed during the delay a different LED turns on (LED2). Thinking of using Interrupts() and noInterrupts() but that seems to mess with the delay()?

Thinking of using Interrupts() and noInterrupts() but that seems to mess with the delay()?

No surprise there as delay() depends on interrupts to work

Forget about delay() and interrupts and use millis() for timing. That way the code is not blocked during the timing period and an input could be detected and acted on

Take a look at Using millis() for timing. A beginners guide, Several things at the same time and the BlinkWithoutDelay example in the IDE