获取随机数

支持芯片: SHMICTRL系列芯片 ESP32-S3系列

int rand(int n);
//n:随机数范围
返回:0~n 之间的随机数

示例

int a;
a=rand(100);
echo(a);