Training + re-implementation of LogNNet for digit recognition of Y.A. Izotov and A Velichko https://github.com/izotov93/LogNNet https://github.com/izotov93/LogNNet_Arduino
Press et al: Numerical Recipes in C., Ch. 7, Random Numbers.
There's a training file and a script to convert the numpy calculated data to C++ h file to upload to Arduino.