makes a random split & subset of an array; p (the fraction that you want to split) is
constrained to be 0, 1
. Note that the length of the first array will be the closest
integer to the fraction you desired, meaning that each element is NOT selected with
probability exactly p.