EN
Random - common problems - collections (Cross technology)
0
points
Collections
Problem | Cross | JS/Node | Java | C# | Python | Bash | PHP | C++ |
---|---|---|---|---|---|---|---|---|
generate array of random bytes | ||||||||
generate array with 10 random numbers | ||||||||
generate list with 10 random numbers | ||||||||
generate random string (random text) | ||||||||
generate set with 10 random unique number | ||||||||
generate random char array of size 10 | ||||||||
get random element from list | ||||||||
get random key value element from dictionary | ||||||||
get random key value element from hash map | ||||||||
get random element from HashSet | ||||||||
get random element from list | ||||||||
pick random string from array of strings | ||||||||
get random element from enum | ||||||||
get random element from set | ||||||||
sort in random order | ||||||||
own random number generator (custom implementation) |
Note:
TODO: check empty cells in dirask search and paste links.