Snippet - Randomizer - use your led7r as a dice

Randomizer - use your led7r as a dice

One of my first experiences in c# - programming the cerberus using the net gadgeteer application.

Want so share some code with classmates since usually everyone is struggling at first.

The code might be kinda messy but I’m a newbie as i said :smiley:

There might for example be a more elegant function to turn the lights of which where on before but since I didn’t knew better I just c&p’ed to turn every existing light off^^

I also wanted to use [quote]int n = r.Next(1,7);[/quote] but since that won’t work i just used

3 Likes