beta_data function

Simulate random data from a beta curve