Skip to content

Instantly share code, notes, and snippets.

@sskwwskwww
sskwwskwww / VoiceRoid2.vb
Last active Jun 12, 2017
VOICEROID2を外部から読み上げさせる奴
View VoiceRoid2.vb
Option Strict Off
Imports Codeer.Friendly.Windows
Imports Codeer.Friendly.Windows.Grasp
Imports RM.Friendly.WPFStandardControls
Imports System.Windows.Controls
Imports Codeer.Friendly.Windows.NativeStandardControls
Imports Codeer.Friendly
Public Class VoiceRoid2
@sskwwskwww
sskwwskwww / MT.vb
Created Apr 18, 2017
MTのfill array的な奴
View MT.vb
Public Class MT
Private mt() As UInt32
Private idx As Integer
Public Sub New(ByVal s As UInt32, ByVal max As Integer)
Init(s, max)
End Sub
Public Sub Init(ByVal s As UInt32, ByVal max As Integer)
@sskwwskwww
sskwwskwww / Inv.vb
Created Dec 12, 2016
SM孵化最下位bit列から元の乱数列を計算する奴
View Inv.vb
Public Module Inv
Private ReadOnly invlist() As ULong = {&HAF630C9B9374B832UL, &H5FC1AAB2E39C4434UL, &HBD3BDA1869A675F1UL, &H1085296E28C0425AUL, &H2C23BA331C3BE6FCUL, &H31C7020BDEBC413DUL, &H69E216E9BBD26EC9UL, &H224AEB96ADD37392UL, &H7E22D643E79CD92EUL, &H2A335AD5F6E13D06UL, &HDEB7E9E63117D9ABUL, &H2EC75958BA057AD8UL, &HE769C722C8A18CB0UL, &H2CD358B8CFE73970UL, &H53582C1F25385E43UL, &H2DEB94943D604BB2UL, &H347150FC3CB5F0FEUL, &H2D6C077E2A7A2373UL, &H2FF951D9B993151UL, &H2D2343FDB9BAB82AUL, &H2F551181AE422688UL, &H5D237E3D6F7DCB49UL, &HDECC07E80CC01041UL, &H30C48335335FEB7FUL, &HA925A653684A5D01UL, &H4B79F55CC2563B50UL, &H16F3746C77F1BD4DUL, &H668CDA849CD2E78CUL, &H1E6349B08F0545C8UL, &H40160FF7C6DB891DUL, &HFA7967F7689DD586UL, &H32F3516717ECA59FUL, &H4A3130D70705F98CUL, &H7DA1B0D3E68B56C3UL, &HA827F3266CCF66A6UL, &H26822282FAD804BUL, &HEC6D5D890574B761UL, &H71441643F3F1F14EUL, &H90C1691508849DD0UL, &H4C66DA6DF0F8D52DUL, &H342643143AFBB98CUL, &H68D2E0330E2D5AB6UL, &H18913AE950077189UL, &H3869A1AD6FF21DBD