v3.44にて randInt, randIntN 関数が追加されました。
それぞれ、math/rand.Int(), math/rand.IntN()が呼び出されます。
# https://taskfile.dev
version: '3'
tasks:
default:
cmds:
- echo "{{randInt}}" # math/rand/v2.Int()が呼び出される
- echo "{{randIntN 10}}" # math/rand/v2.IntN()が呼び出される$ task
task: [default] echo "6197453053355761480"
6197453053355761480
task: [default] echo "0"
0