LoginSignup
1
0

More than 1 year has passed since last update.

ArduinoIDEでランダムな小数値を生成

Last updated at Posted at 2022-03-23

0~1までのランダム小数を生成します。

float random(0,100) / 100.00

0.59

.00 と欲しい桁数を指定して割るのがポイントです。
🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
rockyshikoku@gmail.com

Core MLやARKitを使ったアプリを作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium
GitHub

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0