Für "Software Zufall" gibt es Pseudo Random Number Generator.
https://de.wikipedia.org/wiki/Zufallszahlengenerator
Einer der Einfachsten Zufallsgeneratoren ist KISS
https://de.wikipedia.org/wiki/KISS_%...engenerator%29Code:#include <stdint.h> // interner Zustand static uint32_t x = 123456789; // <- beliebige seed != 0 static uint32_t y = 362436000; static uint32_t z = 521288629; static uint32_t c = 7654321; uint32_t KISS() { uint64_t t; // Linearer Kongruenzgenerator x = 69069 * x + 12345; // Xorshift y ^= y << 13; y ^= y >> 17; y ^= y << 5; // Multiply-with-carry t = 698769069ULL * z + c; c = t >> 32; z = (uint32_t) t; return x + y + z; }
Hier die kleinen Arduinos
https://www.tiny-circuits.com/products/tiny-duino.html
Lesezeichen