Created
January 24, 2024 17:14
-
-
Save rafaelqueiroz88/ad2d8ba466cee02e404e57f7091a0f3a to your computer and use it in GitHub Desktop.
Get some element at random from array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool getRandomElement(List<bool> list) => list[Random().nextInt(list.length)]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment