Catman...:random(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, welcome to Catmandu::Fix::random β€” the little Fix that literally just makes a random number and drops it in a field. that's it. that's the whole job. iconic behaviour honestly. ✨

she lives in the Catmandu::Fix family, and she's here to ✨create an random number in a field✨ (yes the grammar is the original's, no I will not be fixing it, it's part of her charm 🫢).


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's how you use her. the vibe is: you name a field, you give her a number, she gives you a random value from 0 up to but not including that number. no cap. πŸ’…

# Add a new field 'foo' with a random value between 0 and 9
random(foo, 10)

# Add a new field 'my.random.number' with a random value 0 or 1
random(my.random.number,2)

so in the first one you're saying "bestie give me a foo and roll me a number from 0 to 9" 🌸 and in the second one you want my.random.number and you only want 0 or 1 β€” a little coin flip, a little yes/no, a little main character decision πŸ”₯

also notice: dots in the field name are totally fine, my.random.number just goes in as one nested-ish name and she does not complain. periodt. πŸ’œ

🌈 SEE ALSO 🌈

  • Catmandu::Fix β€” the mothership, the whole reason any of this works, go say hi to her πŸ’–

and that's the tea, bestie πŸ“ β€” this page came to you courtesy of perl v5.40.1, dated 2026-01-24, straight from the User Contributed Perl Documentation files. go forth and randomise responsibly. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from