public static IronPythonEngine.Types.Set QRandomSet(double min, double max, double items) { var set = new IronPythonEngine.Types.Set(items); var r = new Sublight.Utilities.QuantumRandomNumberGenerator(); var imin = Convert.ToInt32(min); var imax = Convert.ToInt32(max); for (int i = 0; i < items; i++) { var item = r.Next(imin, imax); set.Add(item); } return(set); }
public static IronPythonEngine.Types.Set QRandomSet(double min, double max, double items) { var set = new IronPythonEngine.Types.Set(items); var r = new Sublight.Utilities.QuantumRandomNumberGenerator(); var imin = Convert.ToInt32(min); var imax = Convert.ToInt32(max); for (int i = 0; i < items; i++) { var item = r.Next(imin, imax); set.Add(item); } return set; }