\documentclass{article}

\usepackage{pgfplots}
\usepackage{amsmath}

\begin{document}

\pgfmathsetseed{1}
\begin{tikzpicture}%[rotate=90]
	\begin{axis}[
	tiny,
  ybar interval,
  ymin=0,
  xmin=0,xmax=1,
  extra x ticks={0,1},
  extra x tick style={grid=none,x tick label as interval=false,xticklabel=$\pgfmathprintnumber\tick$},
  height=4cm,width=12cm,
  xticklabel={$[\pgfmathprintnumber[fixed]\tick,\cdot)$}
]
	\addplot+[samples=200,hist] {rnd};
	\end{axis}
\end{tikzpicture}
\end{document}

