Randomly Slicing training data into different percentages

i have a data frame and i want to create a function that helps me to slice my training data into different chunks with different percentages (20, 40, 50, 60, 80, 100 %) so i can use each of these chunks in my training , any one did this before ?