1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! # Decentralized Decision Library
//!
//! A library for decentralized decision making, fair division algorithms, and random number generation.
//! This library focuses on consensus-friendly, objective algorithms.
//!
//! ## Features
//!
//! ### ⚖️ Fair Division Algorithms
//! - Equal weights and weighted fair division
//! - Super fair division algorithms
//! - Optimal resource allocation
//!
//! ### 🎲 Decentralized Random Number Generation
//! - Single and multiple random number generation
//! - Collision resistance and uniqueness guarantees
//! - Offset mechanism for pattern prevention
//!
//! ## Quick Start
//!
//! ```rust
//! use dd_algorithms_lib::{
//! // Fair Division
//! calculate_fair_division_equal_weights,
//! calculate_fair_division_weighted,
//!
//! // Random Generation
//! get_one_dd_rand_num,
//! get_k_dd_rand_num,
//! };
//! ```
//!
//! ## Examples
//!
//! See the `examples/` directory for comprehensive usage examples.
// Core modules
// Unit tests for algorithms live in `src/test.rs`
// Re-export main functionality
pub use *;
pub use *;
// Common error types
/// Result type for the library
pub type Result<T> = Result;