UBTECH Alpha Servos UBT-12HC icon UBTECH Alpha Servos UBT-12HC Control UBTECH Alpha UBT-12HC smart servos via ARC using EZ-B v4/IoTiny UART, assign virtual ports, set baud, custom bits and position mapping. 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.