the class to generate random number
check if the randomer is initiated
check if the randomer is initiated
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand |
clean the randomer
clean the randomer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand |
initialize the randomer
initialize the randomer, if parallel all procs have different random seeds
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand | |||
integer, | intent(in) | :: | myseed | |||
integer, | intent(in) | :: | my_rank |
initialize the randomer, if parallel all procs has the same random seed
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand | |||
integer, | intent(in) | :: | myseed |
return a random double number
return a random double number form 0.0 to 1.0
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand |
return a random integer
return a random double number form iMin to iMax
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand | |||
integer, | intent(in) | :: | iMin | |||
integer, | intent(in) | :: | iMax |
return the random seed
return the random seed
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand |
return the random seed of this core
return the random seed of this core
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(randomer), | intent(inout) | :: | myrand |