Like the title says, how do I remove x number of random items from the player's inventory?
I agree with DocClox on SKSE use, not on the method.
Try to make the player reference an object reference and use http://www.creationkit.com/GetNumItems_-_ObjectReference SKSE function, make a random number based on the index gained and use http://www.creationkit.com/ObjectReference_Script to point at the item and GetItemCount...and then a random number between 1 and the number of items to define how many items remove.