Method and system for randomly sampling big data

The application provides a method for randomly sampling in a database. The method comprises the following steps of classifying multiple records into multiple groups; randomly sampling one or more of the multiple groups; randomly sampling a required amount of records from the one or more randomly-sampled groups. In addition, the application further provides a system for randomly sampling in the database and a computer readable storage medium.