This Infinite Random Sequence?

43 Views Asked by At

I was working on Random sequence and LCG's when I found this recursive algorithm:

$$X_{n+1}=[{\sqrt{n(X_n+1)}}]\%10$$

Where, $[x]$ is the floor function.

When executed with $X_0=0$, the sequence turns out to be:

0,0,1,2,5,9,5,4,5,9,8,0,1,6,4,1,1,2,9,6,0,0,1,1,2,1,5,3,4,2,0,0,1,5,0,4,8,8,1,3,8,0,1,9,5,7,7,0,7........

I tested it and found out that there is no repition in this sequence till $X_{10000}$
Is it a better alternative to LCG's?