add doc for castrandom