PWM Servo Ramping icon PWM Servo Ramping — Smoothly ramps PWM servos on EZB D0-D23 via Vx-to-Dx mapping for natural, gradual motion without snapping. Try it →
 

Getrandomunique

Utility.getRandomUnique(min, max)

Parameters

min Inclusive lower bound on the random integer.
max Exclusive upper bound on the random integer.

Returns

Random integer between min (inclusive) and max (exclusive) and unique from the last returned integer.

Description

Returns a random integer between min (inclusive) and max (exclusive). This function will never return the same integer twice.