Skip to content

Instantly share code, notes, and snippets.

View mwyborski's full-sized avatar

Marek Wyborski mwyborski

View GitHub Profile
@mwyborski
mwyborski / benford_distribution.py
Last active January 23, 2023 16:44
Example for benford distribution
import numpy as np
max_rnd_value = 100000
num_samples = 100000
# do benford or uniform distribution
do_benford = True
if do_benford:
num_factors = int(np.floor(np.log10(max_rnd_value)))