Java Code Examples for com.watabou.utils.Random#Long
The following examples show how to use
com.watabou.utils.Random#Long .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Dungeon.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
public static long seedForDepth(int depth){ Random.pushGenerator( seed ); for (int i = 0; i < depth; i ++) { Random.Long(); //we don't care about these values, just need to go through them } long result = Random.Long(); Random.popGenerator(); return result; }
Example 2
Source File: Dungeon.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 5 votes |
public static long seedForDepth(int depth){ Random.seed( seed ); for (int i = 0; i < depth; i ++) Random.Long(); //we don't care about these values, just need to go through them long result = Random.Long(); Random.seed(); return result; }
Example 3
Source File: DungeonSeed.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public static long randomSeed(){ return Random.Long( TOTAL_SEEDS ); }
Example 4
Source File: DungeonSeed.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public static long randomSeed(){ return Random.Long( TOTAL_SEEDS ); }