Add the astronomer's method

It's all about randomness
This commit is contained in:
Marc Brooks 2020-01-08 14:48:07 -06:00 committed by GitHub
parent d548420d77
commit e835634d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,3 +378,21 @@ Credit: @axelf4
```vim ```vim
:echom test_null_list() :echom test_null_list()
``` ```
## The astronomer's way
Credit: @idisposable
```python
from secrets import randbits
def heat_death():
return False
def increase_entropy():
return randbits(64)
while heat_death()==False:
increase_entropy();
print('The universe is dead, VIM no longer exists');
```