This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const buffer_size = 100_000_000; | |
var m = std.mem.zeroes([buffer_size]u64); | |
var default_prng = std.Random.DefaultPrng.init(0x420); | |
pub fn main() void { | |
const a = &m; | |
var in: usize = 0; | |
while (in < buffer_size) : (in += 1) { | |
m[in] = default_prng.next(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
def decksplit(): | |
deck = list(range(13))*4 | |
random.shuffle(deck) | |
p1 = deck[:26] | |
p2 = deck[26:] | |
return (p1,p2) | |
def printb(p1,p2, time, war = False): | |
print(p1) |