broken random-function