mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
410516fdff
Added complete call-seq documentation for 7 missing public methods in the random gem, improving documentation coverage from 25% to 100%. Documentation added: - Random.new: Create new random number generator with optional seed - Random#rand: Generate random numbers (float, integer, or range) - Random#srand: Seed the random number generator - Random#bytes: Generate random byte strings - Random.rand/rand: Class method and Kernel method for default generator - Random.srand/srand: Class method and Kernel method for seeding - Random.bytes: Class method for random bytes using default generator Each method now includes: - Clear method signatures with parameter and return types - Detailed descriptions of random number generation behavior - Practical examples showing different usage patterns - Notes about default vs instance generators - Cross-references between class methods and Kernel methods - Range and numeric type handling explanations The existing Array methods (shuffle, shuffle!, sample) were already well-documented and remain unchanged. This completes the documentation for all random number generation functionality in mruby, covering both the Random class API and the traditional Kernel methods. This significantly improves usability for developers working with random number generation, cryptographic applications, and statistical sampling in embedded Ruby environments. Co-authored-by: Atlassian Rovo Dev