548 karma · joined October 5, 2020
The lights: maybe this is a good start https://www.adafruit.com/product/1461
An Arduino: https://www.adafruit.com/product/3345
A wifi or ethernet shield (a shield stacks on the Arduino board and add a function): https://www.adafruit.com/product/2971
A power supply: https://www.adafruit.com/product/658
You may also want a soldering iron and a nice case if this is a permanent project.
You could start with a raspberry pi, which will have a lower investment, but the Arduino's simplicity is great for learning.
32 bits (and now 64 as @dragontamer calculated) is a huge input space. You could verify 4 int_8 or 2 char[2] functions.
However, it was written in 1968 before these semiconductors were developed. Do you have any recommendations for further reading on the design or history of MEMS?
def uneven_random():
# return 0 with 2/7 probability, 1 with 2/7 probability, and 2 with 3/7 probability
n = random.random()
if n < 2.0/7: return 0
if n < 4.0/7: return 1
return 2
def transformed_random():
# return 0 or 1 with 50% probability
N = uneven_random()
while N == 2 : N = uneven_random()
return N