PWM Slider icon PWM Slider Slider to set EZ-B digital PWM for motor speed or LED brightness; shows duty-cycle, stop button, and board/port selection. Try it →
 

Readrandomline

File.readRandomLine(filename)

Parameters

filename Path of file to read from.

Returns

A random line from the file as a string.

Description

Reads and returns a random line from the file, which starts from the end of one line and ends at the next endline character. This function does not affect the read position of the file.