RandomImpl implemented via stringfunction