The film, directed by David Frain, also stars Miles Teller, Elizabeth Olsen, and Callum Turner, reports Variety.

The project is Randolph's first feature film with A24 Productions. The story of 'Eternity' has been kept under wraps, but it is described as a romantic comedy whose characters must decide who they want to spend eternity with.

According to Variety, A24 is financing the film and partnering with Oscar-nominated producers Trevor White and Tim White under their production company Star Throw Entertainment.

Olsen and Taylor will also serve as executive producers. Production on 'Eternity' is scheduled to begin this summer.

Randolph gained widespread attention with her breakout role as mental patient Oda Mae Brown in 2012's 'Ghost: The Musical' on Broadway and earned a Tony Award nomination. This role led to memorable film performances, including 'Dolemite I'm My Name' with Eddie Murphy and 'The Lost City' with Sandra Bullock.

The Philadelphia-born actress won hearts and critical praise with her portrayal of an unhappy cafeteria manager in Alexander Payne's 'The Holdovers,' earning more than 70 critics' awards and winning an Oscar for Best Supporting Actress.

She will also be in the running for her first Emmy Award in the guest actress category for her role as Detective Donna Williams in the third season of Hulu's mystery comedy 'Only Murders in the Building'.