# tf.random.stateless_truncated_normal

Outputs deterministic pseudorandom values, truncated normally distributed.

This is a stateless version of `tf.random.truncated_normal`: if run twice with the same seeds, it will produce the same pseudorandom numbers. The output is consistent across multiple runs on the same hardware (and between CPU and GPU), but may change between versions of TensorFlow or on non-CPU/GPU hardware.

The generated values follow a normal distribution with specified mean and standard deviation, except that values whose magnitude is more than 2 standard deviations from the mean are dropped and re-picked.

`shape` A 1-D integer Tensor or Python array. The shape of the output tensor.
`seed` A shape  integer Tensor of seeds to the random number generator.
`mean` A 0-D Tensor or Python value of type `dtype`. The mean of the truncated normal distribution.
`stddev` A 0-D Tensor or Python value of type `dtype`. The standard deviation of the normal distribution, before truncation.
`dtype` The type of the output.
`name` A name for the operation (optional).

A tensor of the specified shape filled with random truncated normal values.

[]
[]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6346415,"math_prob":0.8095846,"size":1370,"snap":"2022-40-2023-06","text_gpt3_token_len":319,"char_repetition_ratio":0.12445095,"word_repetition_ratio":0.06763285,"special_character_ratio":0.21313868,"punctuation_ratio":0.13385826,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96175927,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-30T04:07:27Z\",\"WARC-Record-ID\":\"<urn:uuid:30cc4a03-6e48-45dc-b116-6ae7c4209aa3>\",\"Content-Length\":\"752278\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7ed2bbaa-1818-4b73-a2c9-5c8b3154d817>\",\"WARC-Concurrent-To\":\"<urn:uuid:87057790-607b-42b9-b3f4-b7593f13d0ab>\",\"WARC-IP-Address\":\"172.253.115.94\",\"WARC-Target-URI\":\"https://tensorflow.google.cn/versions/r2.1/api_docs/python/tf/random/stateless_truncated_normal\",\"WARC-Payload-Digest\":\"sha1:Q5NFBYNUTGLAAS2K23OBCH6QFRWYOA2M\",\"WARC-Block-Digest\":\"sha1:VIG2UPBQPDD2AN5MCEVDS672SLO5B7BR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335424.32_warc_CC-MAIN-20220930020521-20220930050521-00270.warc.gz\"}"}