아두이노랜덤1 randomSeed random(max) 또는 random(min, max) 함수는 난수를 생성해 주는 함수이다. (max 값만 설정하면 0 ~ max 범위 내의 숫자를 무작위로 추출해 낸다.) 그런데 아두이노에서 난수를 생성해 보면 매번 똑같은 숫자가 랜덤 생성 된다. 아두이노 참조 사이트의 random 함수 예제 아래 주의와 경고 항목을 살펴보자. https://www.arduino.cc/reference/ko/language/functions/random-numbers/random/ 주의와 경고 If it is important for a sequence of values generated by random() to differ, on subsequent executions of a sketch, use randomS.. 2020. 1. 4. 이전 1 다음