Skip to content

Instantly share code, notes, and snippets.

View ykonishi's full-sized avatar

Yusuke Konishi ykonishi

  • Academeia Co., Ltd.
  • Nagareyama, Chiba, Japan
  • X @ykns0818
View GitHub Profile
@ykonishi
ykonishi / ising2d.go
Last active August 29, 2015 13:59
MC simulation code for 2D Ising model
/*
MC simulation code for 2-dimensional Ising model
Copyright (C) 2014 Yusuke Konishi
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
package main
@ykonishi
ykonishi / mt19937.f90
Last active May 15, 2023 03:43
MT19937, Mersenne Twister Random Number Generator in Fortran90
! MT19937, Mersenne Twister Random Number Generator ([0,1) Real Number)
! in Fortran90
!
! Usage:
! 1) When you use mt19937, add the sentence "use mt19937"
! above the implicit sentence.
! 2) To set an initial seed, call sgrnd(seed). (The "seed" is an integer.)
! If you do not call this, the seed is 4357.
! 3) Use the function grnd().
! (Do not declare "real(8) :: grnd".)