prng.bytes(size) â a_string
Instance Public methods
Returns a random binary string containing size
bytes.
1 2 | random_string = Random. new .bytes( 10 ) # => "\xD7:R\xAB?\x83\xCE\xFAkO" random_string.size # => 10 |
Returns a random binary string containing size
bytes.
1 2 | random_string = Random. new .bytes( 10 ) # => "\xD7:R\xAB?\x83\xCE\xFAkO" random_string.size # => 10 |
Designed by : w10schools
service@w10schools.com
Please login to continue.