Benford’s law is defined on {1, 2, . . . , 8, 9} as follows: Write functions dBenford, pBenford and.

Benford’s law is defined on {1, 2, . . . , 8, 9} as follows: Write functions dBenford, pBenford and rBenford that return the density, the (cumulative) distribution function and generate random values according to this distribution.