Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1034220 // tempSetRandomSeed

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (101L/1K).

static AutoCloseable tempSetRandomSeed(int seed) {
  ret tempSetCustomRandomizerForThisThread(new Random(seed));
}

Author comment

Began life as a copy of #1034190

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034220
Snippet name: tempSetRandomSeed
Eternal ID of this version: #1034220/1
Text MD5: 2f90a2620627d93c483a428068fb9b17
Transpilation MD5: 883cb77293b4ac155388f44baf6e9682
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 02:25:40
Source code size: 116 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 211
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034909 - tempUsePredictableRandomizer
#1034910 - tempSetRandomSeedUnlessNull