Using quantum random number generator for lottery draws just for fun [on hold]Random Number Generator...

Why is "points exist" not an axiom in geometry?

Strange Sign on Lab Door

Slow moving projectiles from a hand-held weapon - how do they reach the target?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

Checking for the existence of multiple directories

If I delete my router's history can my ISP still provide it to my parents?

Can I write a book of my D&D game?

Compress command output by piping to bzip2

Difference between thick vs thin front suspension?

Would a National Army of mercenaries be a feasible idea?

Does Improved Divine Strike trigger when a paladin makes an unarmed strike?

Process to change collation on a database

What is the wife of a henpecked husband called?

What to do when being responsible for data protection in your lab, yet advice is ignored?

Magento 2 : Call Helper Without Using __construct in Own Module

Does Windows 10's telemetry include sending *.doc files if Word crashed?

Is a debit card dangerous for an account with low balance and no overdraft protection?

How to prevent users from executing commands through browser URL

Eww, those bytes are gross

Cryptic with missing capitals

Disable the ">" operator in Rstudio linux terminal

Every character has a name - does this lead to too many named characters?

How would one buy a used TIE Fighter or X-Wing?

Can you combine War Caster, whip, and Warlock Features to Eldritch Blast enemies with reach?



Using quantum random number generator for lottery draws just for fun [on hold]


Random Number Generator ClassRandom D20 number generatorOptimize random number generatorSimple random number generatorLottery number pickerSecure random number generatorLottery number generatorRandom number generator initialisationPseudo Random Number GeneratorPseudo-truly random number generator













-1












$begingroup$


I have a row of variables indicating each ball from the powerball lottery. Each variable except the last one generates a random number between 1-69. The idea is that as long as no one observes the information then every number has been chosen. By using A == A: I try obscuring information.



Hackaday's Project Page



pypi link



import quantumrandom
import os, sys
import gtk.gdk
import time
import pyaudio
import wave
from array import array



A = quantumrandom.randint(1, 70)
B = quantumrandom.randint(1, 70)
C = quantumrandom.randint(1, 70)
D = quantumrandom.randint(1, 70)
E = quantumrandom.randint(1, 70)
F = quantumrandom.randint(1, 27)



time.sleep(10)



if A == A:

D = quantumrandom.randint(10, 70)
FORMAT=pyaudio.paInt16
CHANNELS=2
RATE=44100
CHUNK=1024
RECORD_SECONDS=D
FILE_NAME=D


audio=pyaudio.PyAudio() #instantiate the pyaudio

#recording prerequisites
stream=audio.open(format=FORMAT,channels=CHANNELS,
rate=RATE,
input=True,
frames_per_buffer=CHUNK)

#starting recording
frames=[]

for i in range(0,int(RATE/CHUNK*RECORD_SECONDS)):
data=stream.read(CHUNK)
data_chunk=array('h',data)
vol=max(data_chunk)
if(vol>=0):
print("catisalive-something said")
frames.append(data)
else:
print("catisalive-something said")
print("n")


#end of recording
stream.stop_stream()
stream.close()
audio.terminate()
#writing to file
wavfile=wave.open('%s.wav' % FILE_NAME, 'wb')
wavfile.setnchannels(CHANNELS)
wavfile.setsampwidth(audio.get_sample_size(FORMAT))
wavfile.setframerate(RATE)
wavfile.writeframes(b''.join(frames))#append frames recorded to file
wavfile.close()









share|improve this question









New contributor




Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as unclear what you're asking by Graipher, 200_success, Vogel612 23 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 1




    $begingroup$
    I don't think I understand what you mean. quantumrandom does not seem to return entangled numbers, but just random numbers generated using a quantum process. Also it seems like they have a bug in their Python 3 version, quantumrandom.randint does not return ints...Anyways, what is this script actually supposed to do (and how does it do it, in simple words)? What does saving a sound file have to do with drawing lottery numbers?
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Also, we only look at working code, so changing what your code does (like using your own lasers instead of the quantumrandom package) would be off-topic here. Have a look at our help center for more information.
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Well, I'll correct it.
    $endgroup$
    – Travis Wells
    yesterday










  • $begingroup$
    The script is meant to replicate something similar to Schrodinger's Cat. The idea is to obscure information. By saving a soundfile name I obscure information so in theory all numbers are in a super-state.
    $endgroup$
    – Travis Wells
    yesterday






  • 2




    $begingroup$
    I don't see how this code accomplishes anything that remotely resembles a lottery draw, so I'm voting to close this question as off-topic for Code Review.
    $endgroup$
    – 200_success
    yesterday
















-1












$begingroup$


I have a row of variables indicating each ball from the powerball lottery. Each variable except the last one generates a random number between 1-69. The idea is that as long as no one observes the information then every number has been chosen. By using A == A: I try obscuring information.



Hackaday's Project Page



pypi link



import quantumrandom
import os, sys
import gtk.gdk
import time
import pyaudio
import wave
from array import array



A = quantumrandom.randint(1, 70)
B = quantumrandom.randint(1, 70)
C = quantumrandom.randint(1, 70)
D = quantumrandom.randint(1, 70)
E = quantumrandom.randint(1, 70)
F = quantumrandom.randint(1, 27)



time.sleep(10)



if A == A:

D = quantumrandom.randint(10, 70)
FORMAT=pyaudio.paInt16
CHANNELS=2
RATE=44100
CHUNK=1024
RECORD_SECONDS=D
FILE_NAME=D


audio=pyaudio.PyAudio() #instantiate the pyaudio

#recording prerequisites
stream=audio.open(format=FORMAT,channels=CHANNELS,
rate=RATE,
input=True,
frames_per_buffer=CHUNK)

#starting recording
frames=[]

for i in range(0,int(RATE/CHUNK*RECORD_SECONDS)):
data=stream.read(CHUNK)
data_chunk=array('h',data)
vol=max(data_chunk)
if(vol>=0):
print("catisalive-something said")
frames.append(data)
else:
print("catisalive-something said")
print("n")


#end of recording
stream.stop_stream()
stream.close()
audio.terminate()
#writing to file
wavfile=wave.open('%s.wav' % FILE_NAME, 'wb')
wavfile.setnchannels(CHANNELS)
wavfile.setsampwidth(audio.get_sample_size(FORMAT))
wavfile.setframerate(RATE)
wavfile.writeframes(b''.join(frames))#append frames recorded to file
wavfile.close()









share|improve this question









New contributor




Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as unclear what you're asking by Graipher, 200_success, Vogel612 23 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 1




    $begingroup$
    I don't think I understand what you mean. quantumrandom does not seem to return entangled numbers, but just random numbers generated using a quantum process. Also it seems like they have a bug in their Python 3 version, quantumrandom.randint does not return ints...Anyways, what is this script actually supposed to do (and how does it do it, in simple words)? What does saving a sound file have to do with drawing lottery numbers?
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Also, we only look at working code, so changing what your code does (like using your own lasers instead of the quantumrandom package) would be off-topic here. Have a look at our help center for more information.
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Well, I'll correct it.
    $endgroup$
    – Travis Wells
    yesterday










  • $begingroup$
    The script is meant to replicate something similar to Schrodinger's Cat. The idea is to obscure information. By saving a soundfile name I obscure information so in theory all numbers are in a super-state.
    $endgroup$
    – Travis Wells
    yesterday






  • 2




    $begingroup$
    I don't see how this code accomplishes anything that remotely resembles a lottery draw, so I'm voting to close this question as off-topic for Code Review.
    $endgroup$
    – 200_success
    yesterday














-1












-1








-1





$begingroup$


I have a row of variables indicating each ball from the powerball lottery. Each variable except the last one generates a random number between 1-69. The idea is that as long as no one observes the information then every number has been chosen. By using A == A: I try obscuring information.



Hackaday's Project Page



pypi link



import quantumrandom
import os, sys
import gtk.gdk
import time
import pyaudio
import wave
from array import array



A = quantumrandom.randint(1, 70)
B = quantumrandom.randint(1, 70)
C = quantumrandom.randint(1, 70)
D = quantumrandom.randint(1, 70)
E = quantumrandom.randint(1, 70)
F = quantumrandom.randint(1, 27)



time.sleep(10)



if A == A:

D = quantumrandom.randint(10, 70)
FORMAT=pyaudio.paInt16
CHANNELS=2
RATE=44100
CHUNK=1024
RECORD_SECONDS=D
FILE_NAME=D


audio=pyaudio.PyAudio() #instantiate the pyaudio

#recording prerequisites
stream=audio.open(format=FORMAT,channels=CHANNELS,
rate=RATE,
input=True,
frames_per_buffer=CHUNK)

#starting recording
frames=[]

for i in range(0,int(RATE/CHUNK*RECORD_SECONDS)):
data=stream.read(CHUNK)
data_chunk=array('h',data)
vol=max(data_chunk)
if(vol>=0):
print("catisalive-something said")
frames.append(data)
else:
print("catisalive-something said")
print("n")


#end of recording
stream.stop_stream()
stream.close()
audio.terminate()
#writing to file
wavfile=wave.open('%s.wav' % FILE_NAME, 'wb')
wavfile.setnchannels(CHANNELS)
wavfile.setsampwidth(audio.get_sample_size(FORMAT))
wavfile.setframerate(RATE)
wavfile.writeframes(b''.join(frames))#append frames recorded to file
wavfile.close()









share|improve this question









New contributor




Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




I have a row of variables indicating each ball from the powerball lottery. Each variable except the last one generates a random number between 1-69. The idea is that as long as no one observes the information then every number has been chosen. By using A == A: I try obscuring information.



Hackaday's Project Page



pypi link



import quantumrandom
import os, sys
import gtk.gdk
import time
import pyaudio
import wave
from array import array



A = quantumrandom.randint(1, 70)
B = quantumrandom.randint(1, 70)
C = quantumrandom.randint(1, 70)
D = quantumrandom.randint(1, 70)
E = quantumrandom.randint(1, 70)
F = quantumrandom.randint(1, 27)



time.sleep(10)



if A == A:

D = quantumrandom.randint(10, 70)
FORMAT=pyaudio.paInt16
CHANNELS=2
RATE=44100
CHUNK=1024
RECORD_SECONDS=D
FILE_NAME=D


audio=pyaudio.PyAudio() #instantiate the pyaudio

#recording prerequisites
stream=audio.open(format=FORMAT,channels=CHANNELS,
rate=RATE,
input=True,
frames_per_buffer=CHUNK)

#starting recording
frames=[]

for i in range(0,int(RATE/CHUNK*RECORD_SECONDS)):
data=stream.read(CHUNK)
data_chunk=array('h',data)
vol=max(data_chunk)
if(vol>=0):
print("catisalive-something said")
frames.append(data)
else:
print("catisalive-something said")
print("n")


#end of recording
stream.stop_stream()
stream.close()
audio.terminate()
#writing to file
wavfile=wave.open('%s.wav' % FILE_NAME, 'wb')
wavfile.setnchannels(CHANNELS)
wavfile.setsampwidth(audio.get_sample_size(FORMAT))
wavfile.setframerate(RATE)
wavfile.writeframes(b''.join(frames))#append frames recorded to file
wavfile.close()






python random






share|improve this question









New contributor




Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday







Travis Wells













New contributor




Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Travis WellsTravis Wells

11




11




New contributor




Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Travis Wells is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Graipher, 200_success, Vogel612 23 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by Graipher, 200_success, Vogel612 23 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    $begingroup$
    I don't think I understand what you mean. quantumrandom does not seem to return entangled numbers, but just random numbers generated using a quantum process. Also it seems like they have a bug in their Python 3 version, quantumrandom.randint does not return ints...Anyways, what is this script actually supposed to do (and how does it do it, in simple words)? What does saving a sound file have to do with drawing lottery numbers?
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Also, we only look at working code, so changing what your code does (like using your own lasers instead of the quantumrandom package) would be off-topic here. Have a look at our help center for more information.
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Well, I'll correct it.
    $endgroup$
    – Travis Wells
    yesterday










  • $begingroup$
    The script is meant to replicate something similar to Schrodinger's Cat. The idea is to obscure information. By saving a soundfile name I obscure information so in theory all numbers are in a super-state.
    $endgroup$
    – Travis Wells
    yesterday






  • 2




    $begingroup$
    I don't see how this code accomplishes anything that remotely resembles a lottery draw, so I'm voting to close this question as off-topic for Code Review.
    $endgroup$
    – 200_success
    yesterday














  • 1




    $begingroup$
    I don't think I understand what you mean. quantumrandom does not seem to return entangled numbers, but just random numbers generated using a quantum process. Also it seems like they have a bug in their Python 3 version, quantumrandom.randint does not return ints...Anyways, what is this script actually supposed to do (and how does it do it, in simple words)? What does saving a sound file have to do with drawing lottery numbers?
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Also, we only look at working code, so changing what your code does (like using your own lasers instead of the quantumrandom package) would be off-topic here. Have a look at our help center for more information.
    $endgroup$
    – Graipher
    yesterday












  • $begingroup$
    Well, I'll correct it.
    $endgroup$
    – Travis Wells
    yesterday










  • $begingroup$
    The script is meant to replicate something similar to Schrodinger's Cat. The idea is to obscure information. By saving a soundfile name I obscure information so in theory all numbers are in a super-state.
    $endgroup$
    – Travis Wells
    yesterday






  • 2




    $begingroup$
    I don't see how this code accomplishes anything that remotely resembles a lottery draw, so I'm voting to close this question as off-topic for Code Review.
    $endgroup$
    – 200_success
    yesterday








1




1




$begingroup$
I don't think I understand what you mean. quantumrandom does not seem to return entangled numbers, but just random numbers generated using a quantum process. Also it seems like they have a bug in their Python 3 version, quantumrandom.randint does not return ints...Anyways, what is this script actually supposed to do (and how does it do it, in simple words)? What does saving a sound file have to do with drawing lottery numbers?
$endgroup$
– Graipher
yesterday






$begingroup$
I don't think I understand what you mean. quantumrandom does not seem to return entangled numbers, but just random numbers generated using a quantum process. Also it seems like they have a bug in their Python 3 version, quantumrandom.randint does not return ints...Anyways, what is this script actually supposed to do (and how does it do it, in simple words)? What does saving a sound file have to do with drawing lottery numbers?
$endgroup$
– Graipher
yesterday














$begingroup$
Also, we only look at working code, so changing what your code does (like using your own lasers instead of the quantumrandom package) would be off-topic here. Have a look at our help center for more information.
$endgroup$
– Graipher
yesterday






$begingroup$
Also, we only look at working code, so changing what your code does (like using your own lasers instead of the quantumrandom package) would be off-topic here. Have a look at our help center for more information.
$endgroup$
– Graipher
yesterday














$begingroup$
Well, I'll correct it.
$endgroup$
– Travis Wells
yesterday




$begingroup$
Well, I'll correct it.
$endgroup$
– Travis Wells
yesterday












$begingroup$
The script is meant to replicate something similar to Schrodinger's Cat. The idea is to obscure information. By saving a soundfile name I obscure information so in theory all numbers are in a super-state.
$endgroup$
– Travis Wells
yesterday




$begingroup$
The script is meant to replicate something similar to Schrodinger's Cat. The idea is to obscure information. By saving a soundfile name I obscure information so in theory all numbers are in a super-state.
$endgroup$
– Travis Wells
yesterday




2




2




$begingroup$
I don't see how this code accomplishes anything that remotely resembles a lottery draw, so I'm voting to close this question as off-topic for Code Review.
$endgroup$
– 200_success
yesterday




$begingroup$
I don't see how this code accomplishes anything that remotely resembles a lottery draw, so I'm voting to close this question as off-topic for Code Review.
$endgroup$
– 200_success
yesterday










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

How do i solve the “ No module named 'mlxtend' ” issue on Jupyter?

Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...