Last Updated: September 09, 2020
·
5.539K
· jurgelenas

Ruby random boolean

Simple tip how to get random boolean in very elegant way:

[true, false].sample

1 Response
Add your response

Also gotta luv .shuffle

over 1 year ago ·