Skip to main content

range

Function range 

Source
pub fn range() -> String
Expand description

Generate a random mountain range

Examples found in repository?
examples/education_science.rs (line 49)
9fn main() {
10    println!("=== Faker-Rust Education & Science Examples ===\n");
11
12    // University
13    println!("🎓 UNIVERSITY:");
14    println!("  Name:               {}", university::name());
15    println!("  Prefix:             {}", university::prefix());
16    println!("  Suffix:             {}", university::suffix());
17    println!();
18
19    // Science
20    println!("🔬 SCIENCE:");
21    println!("  Element:            {}", science::element());
22    println!("  Element Symbol:     {}", science::element_symbol());
23    println!("  Scientist:          {}", science::scientist());
24    println!();
25
26    // Space
27    println!("🚀 SPACE:");
28    println!("  Planet:             {}", space::planet());
29    println!("  Moon:               {}", space::moon());
30    println!("  Galaxy:             {}", space::galaxy());
31    println!("  Constellation:      {}", space::constellation());
32    println!();
33
34    // Measurement
35    println!("📏 MEASUREMENT:");
36    println!("  Length:             {}", measurement::length());
37    println!("  Weight:             {}", measurement::weight());
38    println!("  Volume:             {}", measurement::volume());
39    println!("  Temperature:        {}", measurement::temperature());
40    println!("  Metric Height:      {}", measurement::metric_height());
41    println!("  Imperial Height:    {}", measurement::imperial_height());
42    println!("  Metric Weight:      {}", measurement::metric_weight());
43    println!("  Imperial Weight:    {}", measurement::imperial_weight());
44    println!();
45
46    // Mountain
47    println!("🏔️ MOUNTAINS:");
48    println!("  Name:               {}", mountain::name());
49    println!("  Range:              {}", mountain::range());
50    println!();
51
52    // Colors
53    println!("🎨 COLORS:");
54    println!("  Color Name:         {}", color::name());
55    println!("  Hex:                {}", color::hex());
56    println!("  RGB:                {:?}", color::rgb());
57    println!("  HSL:                {:?}", color::hsl());
58    println!();
59
60    // Greek Philosophers
61    println!("🏛️ GREEK PHILOSOPHERS:");
62    println!("  Name:               {}", greek_philosophers::name());
63    println!("  Quote:              {}", greek_philosophers::quote());
64    println!();
65
66    // Words
67    println!("🔤 WORDS:");
68    println!("  Adjective:          {}", adjective::adjective());
69    println!("  Verb:               {}", verb::verb());
70    println!("  Verb (Past):        {}", verb::past());
71    println!("  Verb (Ing Form):    {}", verb::ing_form());
72    println!();
73}