Let $g:\mathbb{Z}\to [0,1)$ be given by $$g(z)=rz - [rz]$$ where $[y]$ is the greatest integer that is smaller or equal to $y$ and $0<r<1$ is irrational.
Is the image of $g$ dense in $[0,1)$ and is it an embedding? I think so, but I fail to formally proof it. Thanks for your help!