ADD week 5
This commit is contained in:
		| @@ -0,0 +1,40 @@ | ||||
| package kotlin.random.jdk8; | ||||
|  | ||||
| import androidx.constraintlayout.core.motion.utils.TypedValues; | ||||
| import java.util.Random; | ||||
| import java.util.concurrent.ThreadLocalRandom; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
| import kotlin.random.AbstractPlatformRandom; | ||||
|  | ||||
| /* compiled from: PlatformThreadLocalRandom.kt */ | ||||
| @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000\b\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\bH\u0016J\u0018\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\t\u001a\u00020\u000bH\u0016J\u0010\u0010\r\u001a\u00020\u000e2\u0006\u0010\t\u001a\u00020\u000eH\u0016J\u0018\u0010\r\u001a\u00020\u000e2\u0006\u0010\f\u001a\u00020\u000e2\u0006\u0010\t\u001a\u00020\u000eH\u0016R\u0014\u0010\u0003\u001a\u00020\u00048VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u000f"}, d2 = {"Lkotlin/random/jdk8/PlatformThreadLocalRandom;", "Lkotlin/random/AbstractPlatformRandom;", "()V", "impl", "Ljava/util/Random;", "getImpl", "()Ljava/util/Random;", "nextDouble", "", "until", "nextInt", "", TypedValues.TransitionType.S_FROM, "nextLong", "", "kotlin-stdlib-jdk8"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class PlatformThreadLocalRandom extends AbstractPlatformRandom { | ||||
|     @Override // kotlin.random.AbstractPlatformRandom | ||||
|     public Random getImpl() { | ||||
|         ThreadLocalRandom current = ThreadLocalRandom.current(); | ||||
|         Intrinsics.checkNotNullExpressionValue(current, "current()"); | ||||
|         return current; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.random.Random | ||||
|     public int nextInt(int from, int until) { | ||||
|         return ThreadLocalRandom.current().nextInt(from, until); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.random.Random | ||||
|     public long nextLong(long until) { | ||||
|         return ThreadLocalRandom.current().nextLong(until); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.random.Random | ||||
|     public long nextLong(long from, long until) { | ||||
|         return ThreadLocalRandom.current().nextLong(from, until); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.random.Random | ||||
|     public double nextDouble(double until) { | ||||
|         return ThreadLocalRandom.current().nextDouble(until); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user