Erbsland Core
Getting Started
Usage
Topics
Core
Memory
Compiled Resources
Security Topics
Cryptology
Text
Command Line Options System
Exceptions, Errors and Diagnostics
Filesystem Access and Manipulation
Random and Secrets
Random API Overview
Working with Random Values
Shuffling and Selecting Elements
Secure Randomness
Regular Expressions
Event System
Logging
Streams
Network
Color Terminal
Reference
The Story Behind Erbsland Core
Development Stages and Versioning
Requirements
Changelog
Guidelines
Index
Erbsland Core
Topics
Random and Secrets
View page source
Random and Secrets
Random API Overview
Choosing a Generator
Overview Demo
Reproducible Randomness
Writing Generator-Independent Code
Thread Safety
Working with Random Values
Random Values Demo
Integer Values
Domain Ranges
Lists of Integers
Floating-Point Values
Boolean Values
Random Bytes
Random Strings
Shuffling and Selecting Elements
Element Sampling Demo
Selecting One Element
Empty Inputs
Selecting an Index
Sampling with Replacement
Sampling without Replacement
Shuffling
Secure Randomness
When Secure Randomness Is Required
Secure Randomness Demo
Visible Tokens
Binary Secrets
Protected Generated Values
Failure Behavior
Logging and Display
What SecureRandom Does Not Do