pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
iptv
5 minutes ago
decryptMessage
14 hours ago
gn gen ide ninja executable
14 hours ago
pArr
14 hours ago
PDOCollector not found in
14 hours ago
raised to the power
14 hours ago
Fatal error
14 hours ago
sum
14 hours ago
XMLSerializer failed
14 hours ago
strlen arr
14 hours ago
random choice
import
numpy as np
N_SYMBOLS =
32
MESSAGE_LENGTH = 1_000
message = np.
random
.
choice
(
N_SYMBOLS, size=MESSAGE_LENGTH
)
print
(
"First 5 symbols' numbers and thier binary representation"
)
for
symbol
in
message
[
:
5
]
:
print
(
f
'{symbol: >2} — {symbol:05b}'
)
Parsed in 0.006 seconds