Random...

Wojtek Walczak gminick at hacker.pl
Wed Mar 27 07:57:46 EST 2002


** Since micro$oft is stupid it doesn't mean
** that you should be stupid too - do NOT toppost.
Dnia Mon, 25 Mar 2002 18:52:25 +0100, FREDRIK HULDTGREN napisał(a):
>I want to generate random numbers, very large random numbers. If I use
>randrange() I get an out of bounds error since it only supports numbers
>up to (2**31)-1. However, I can use uniform(), but then I get the number
>returned in 7.9655120654553743e+018 or something simaler, and I would
>rather have it in a "L" format(796551206545537430183218312890381031L).
>How do I do this?
<http://hacker.pl/gminick/pliki/veryrand.py>
HTH.

-- 
[ Wojtek gminick Walczak ][ http://hacker.pl/gminick/ ]
[ gminick (at) hacker.pl ][ gminick (at) klub.chip.pl ]



More information about the Python-list mailing list