Instruction: Write a function in R that defines a custom probability distribution, including density, distribution, quantile, and random generation functions.
Context: This question tests the candidate's ability to implement custom statistical distributions in R, a skill useful for simulating data and for statistical modeling.