Falco Engine 3.9.0.1 (beta)
Random.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Runtime.CompilerServices;
5using System.Text;
6
7namespace FalcoEngine
8{
9 public static class Random
10 {
11 //Generate random number in range[min (Inclusive), max (Inclusive)]
12 public static float Range(float min, float max)
13 {
14 return RangeFloat(min, max);
15 }
16
17 //Generate random number in range[min (Inclusive), max (Exclusive)]
18 public static int Range(int min, int max)
19 {
20 return RangeInt(min, max);
21 }
22
23 [MethodImpl(MethodImplOptions.InternalCall)]
24 private extern static float RangeFloat(float min, float max);
25
26 [MethodImpl(MethodImplOptions.InternalCall)]
27 private extern static int RangeInt(int min, int max);
28 }
29}
static float Range(float min, float max)
Definition: Random.cs:12
static int Range(int min, int max)
Definition: Random.cs:18