<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>Python&#x27;s random library... interesting info</title>
		<link>/blogentry/194023</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/194023" rel="self" type="application/rss+xml" />
		<description>hypersoniq's Blog: Python&#x27;s random library... interesting info</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Original Blog Entry: Python&#x27;s random library... interesting info</title>
			<link>/blogentry/194023</link>
			<guid isPermaLink="true">/blogentry/194023</guid>
			<pubDate>Sun, 17 Aug 2025 17:02:00 GMT</pubDate>
			<dc:creator>hypersoniq</dc:creator>
			<description><![CDATA[<p>Python&#x27;s standard random library uses the Mersenne Twister algorithm to generate random numbers. This can also be found in the add on NumPy library as the MT19937 bit generator. It generates 53 bit precision floats over a very long period of 2^19937-1. It is, however NOT cryptographically secure.<br /><br />If you are interested in the seed that generated your numbers, you can always supply your own with random.seed(46) for example, but if the seed does not change, the sequence stays the same.<br /><br />Instead it will rely on it&#x27;s own seed generation which you can view by querying the state...<br /><br />state = random.getstate()<br /><br />print(state)<br /><br />Will return a tuple of information. Saving this will allow you to start up again with the same state by using<br /><br />continuedState = random.setstate(state)<br /><br />Therefore I believe my QP generator to be random enough .<br /><br />Not sure what this info is good for other than Pyrhon trivia, but I also fall in the rabbit holes on occasion...... &#x5b;&#xa0;<a href="/blogentry/194023">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>hypersoniq</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/194023</wfw:comment>
		</item>
	</channel>
</rss>

