method

bytes

ruby latest stable - Class: Random

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

bytes(p1)
public

Returns a random binary string. The argument size specifies the length of the returned string.