Add random-sampling example in the kernel module