Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 653 Bytes

random.md

File metadata and controls

40 lines (28 loc) · 653 Bytes

Random

{id: random}

rand

{id: rand} {i: rand}

  • Random
  • Pseudo Random floating point number between 0 and 1

Random in other parts of Crystal

{id: other-random}

Random as a class

{id: random-class} {i: next_float} {i: next_int} {i: next_bool} {i: hex} {i: base64}

Random - seed

{id: random-seed} {i: seed}

  • Fixed random-looking numbers.