Random number generation
https://www.tutorialspoint.com/arduino/arduino_random_numbers.htm
I'm looking to create a function for random numbers similar to the link above.
Is there anything in the hardware that would help produce a random seed?
Hi, i did a quick search in the SAM D21 datasheet and i don't find any reference to hardware random generator.
Assuming you're on the INDIO D21G, you could use for randomSeed() the MCU analog pins A11, A12, A13 as they are not used and appear to be floating a little bit. The 4 analog input channels are not a good source as far as i can see.
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 3/15/19, 5:19 PM |
Seen: 2044 times |
Last updated: 3/16/19, 2:02 AM |