Skip to content

Instantly share code, notes, and snippets.

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import domain.Product;
import java.util.ArrayList;
import java.util.Collection;
@matagat
matagat / Reddithowto
Created July 23, 2021 14:20
Reddit post sc
import matplotlib.pyplot as plt
import numpy as np
import math
p = np.array([0,0,0,0,0,0])
means = np.array([1000]) # <- ??
sum = 0;
for x in range(1000):
  s = np.random.default_rng().uniform(1,7,1)
  sum = sum + math.floor(s)
#print(math.floor(s))