I want a random string of characters only (uppercase or lowercase), no numbers, in Go. What is the fastest and simplest way to do this?
相关问题
- how to split a list into a given number of sub-lis
- Generate string from integer with arbitrary base i
- Golang mongodb aggregation
- Unity - Get Random Color at Spawning
- Converting a string array to a byte array
相关文章
- Can I run a single test in a suite?
- JSP String formatting Truncate
- Selecting only the first few characters in a strin
- How to check if a request was cancelled
- why 48 bit seed in util Random class?
- Is it possible to implement an interface with unex
- Python: print in two columns
- How to access value of first index of array in Go
in addition I've found a package which have bunch of methods to manipulate fake data. Found it useful for seeding database while developing https://github.com/Pallinder/go-randomdata. Might be helpful to someone else as well
Here is my way ) Use math rand or crypto rand as you wish.