Sep 272019

ADM

How to generate a random int in Golang

  • 27 September 2019
  • ADM

In Golang there a are two libraries for generating random integers, one is a pseudo-random number generator (package math/rand) and the second one is cryptographically secure random number generator (package crypto/rand)

Jun 192018

ADM

How to generate UUID / GUID in Java

  • 19 June 2018
  • ADM

How to generate UUID / GUID in Java using java.util.UUID class, UUID.randomUUID() method.

Mar 232018

ADM

How to marshal a JAXB object into org.w3c.dom.Document

  • 23 March 2018
  • ADM

How to marshal a JAXB object into org.w3c.dom.Document using Transformer class and formatted console print.

Mar 052018

ADM

How to convert a roman number in decimal in Java

  • 05 March 2018
  • ADM

How to convert a roman number in decimal in Java. The symbols used are I, V, X, C, D and M.

Feb 182018

ADM

How to generate a fixed length random string using Golang

  • 18 February 2018
  • ADM

How to generate a fixed length random string using Golang using a dictionary of chars.

Jul 192017

ADM

How to generate random numbers in a range using Java

  • 19 July 2017
  • ADM

How to generate random numbers in a range using Java. A simple method using SecureRandom, class.