For some $g$ and prime $P$ the sequence
$$x_{i+1} = g^{x_i} \mod P $$
$$ x_0 = g$$
can contain all numbers from $1$ to $P-1$ and with this it is a pseudo-random permutation of those numbers (EDIT: seems to be not the case).
Is there any (quick) way to find big/safe values for $P$ and related $g$ which can still produce every number from $1$ to $P-1$?
Some examples:
With $P=5, g=3$ the sequence would be
$$\begin{split}
&[3, 3^3\equiv 2, 3^{2} \equiv 4, 3^{4} \equiv 1] \mod 5 \\
\equiv&[3, 2, 4, 1] \mod 5
\end{split}$$
Or for $P=23, g=20$ the values would be:
$$[20,18,2,9,5,10,8,6,16,13,14,4,12,3,19,17,7,21,15,11,22,1]$$
or $P=59, g=39$
It looks like not every $P$ has such a value $g$. In some test run small $P$ often had no more than one suitable $g$.
[ 107: 94]
[ 359: 97]
[ 467: 72]
[ 587: 150,375]
[ 719: 284]
So far only $P=587$ got more than one $g$ in my test run. (Edit: I only checked for $P=2q+1$ with $q$ a prime, other $P$ can work as well)
side questions:
Will multiple $g$ be more common for larger $P$?
Or will larger $P$ tend to have no $g$ at all?
main question:
Is there any (quick) way to find big/safe values for $P$ and a related $g$ ?