Hello guys.
In my project i need to be able the mess up the datastream (data recieved from another Arduino) somehow, which in my case is going to be by flipping bits.
What i want to do is make different functions, eg. 25% flip, 10% flip, 1% flip, etc.
When using eg. the 25% flip function, every bit the Arduino recieves should have a 25% chance of being flipped. Flipped in this case means going from a 0 to a 1 or a 1 to a 0. The same goes for the 10% and 1% functions.
Now, i don't really have an idea on where to start, and how to make this whole flip function, so i was hoping for your guidance here.
Best regards