sample_AliasTable_t Function

private function sample_AliasTable_t(this) result(ind)

Draw a random number from an alias table created with the corresponding probabilities @return ind random number between 1 and the size of the array used to create the aliasTable object

Type Bound

AliasTable_t

Arguments

Type IntentOptional Attributes Name
class(AliasTable_t), intent(in) :: this

Return Value integer


Contents