First, I would like to find a function $f:\left[ 0,1 \right] \rightarrow \mathbb{R}$ such that $f$ is continuous but not monotonic in any interval. Secondly, I want to find a, continuous yet not monotonic in any interval, function $g:\mathbb{R} \rightarrow \mathbb{R} $.
Since a function is not continuous in any interval $\leftrightarrow$ the function is not continuous in any interval with rational edges, I thought about finding a function similar to dirichlet function, but couldn't find one that would suit me. Any suggestions? Or maybe I'm looking for the wrong "type" of functions?