Package org.godot.utilities.utils
Class RandomUtils
- java.lang.Object
-
- org.godot.utilities.utils.RandomUtils
-
public class RandomUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description RandomUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull StringgetRandomString()Generate random stringstatic @NotNull StringgetRandomString(int total)Generate random stringstatic RandomgetSystemRandom()Get current system random
-
-
-
Method Detail
-
getSystemRandom
public static Random getSystemRandom()
Get current system random- Returns:
- Get random instance
-
getRandomString
@Contract("_ -> new") @NotNull public static @NotNull String getRandomString(int total)
Generate random string- Parameters:
total- Total bytes of data- Returns:
- Returns a random string
-
-