( uid_6201 | 2019. 02. 04., h – 21:33 )

Perl, Python, Lua egyike sincs?

$ python3
>>> import random
>>>
>>> random.randint(1,90)
5
>>> random.randint(1,90)
33

$ perl -e 'print int(rand(89)+1)'

#!/usr/bin/lua

math.randomseed(os.time())
print (math.random(1,90))
print (math.random(1,90))

Illetve ha dash helyett bash is jó: echo $RANDOM