Random scheme implementation