Important: This repository is now in read-only mode. The development has moved to a new repository.
The latest updates and active development are now happening in the following repository: Crewx
Please update your references and contribute to the new repository if you have any contributions or issues.
RandomX is a Go package that provides a user-friendly tool for generating random strings. It enables you to generate random strings of specified lengths with various character sets, including lowercase letters, uppercase letters, digits, and symbols.
This package was developed with the assistance of ChatGPT 3.5, an advanced language model created by OpenAI.
To incorporate RandomX into your Go project, you can easily install it with the following command:
go get -u github.com/tailabs/randomx
Here's an example demonstrating how to use the RandomX package to generate random strings:
package main
import (
"fmt"
"github.com/tailabs/randomx"
)
func main() {
rx := randomx.New()
randomChars := rx.GenerateRandomString(10, randomx.LowercaseLetters+randomx.UppercaseLetters)
fmt.Println("Random Characters:", randomChars)
randomOptions := randomx.GenerateOptions{
UseLowercase: true,
UseUppercase: true,
UseDigits: true,
UseSymbols: false,
}
randomCustom := rx.GenerateRandomStringFromBuiltin(12, randomOptions)
fmt.Println("Random Custom:", randomCustom)
}
RandomX is developed and maintained by TAILabs.
This package was made possible with the assistance of ChatGPT 3.5, a state-of-the-art language model developed by OpenAI.
This project is licensed under the MIT License - see the LICENSE file for details.