Skip to content

franciscogimeno2000/Arduino-----Random-number-when-compiling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Numero-aleatorio-al-compilar

Random number when compiling

Codigo para generar numeros aleatorios al compilar e incrustarlos en el codigo que se programa en el micro.

Esta funcion como ejemplo, crea 3 numeros unicos para usar en la mac y que sea distinta en cada compilacion.

Yo he usado hora minutos y segundos porque asi es casi imposible que re repitan las mac. Se puede complicar mas pero a mi me valia asi.



Code to generate random numbers when compiling and embedding them in the code that is programmed in the micro.

This function as an example, creates 3 unique numbers to use in the mac and that it be different in each compilation.

I used hour minutes and seconds because it is almost impossible to repeat the mac. It can be more complicated but I was worth it that way.

About

Arduino - Random number when compiling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published