The following is inspired from the most recent [riddle of the week](https://www.spiegel.de/karriere/fuenf-baelle-und-fuenf-eimer-raetsel-der-woche-a-6b30bd21-3487-4ecf-aa34-bcd7efe66509) of the German news magazine [Der Spiegel](https://www.spiegel.de).

For any positive integer $n\in\mathbb{N}$, let $[n]$ denote the set $\{1,\ldots,n\}$. Let $E_n$ be the expected value of the size of the image of any function $f:[n]\to[n]$, or more explicitly, $$E_n = \frac{1}{n^n}\sum_{f:[n]\to[n]}|\text{im}(f)|.$$

What is the value of $\lim_{n\to\infty}E_n/n$, or, if the limit does not exist, what are the values of $\lim\inf_{n\to\infty}E_n/n$ and $\lim\sup_{n\to\infty}E_n/n$, respectively?