s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Globals
Game
Random
chevron_left
Globals
class
Game
Static Properties
data_object
ActiveScene
data_object
AppId
data_object
CheatsEnabled
data_object
Cookies
data_object
Ident
data_object
InGame
data_object
IsClosing
data_object
IsEditor
data_object
IsMainMenuVisible
data_object
IsPaused
data_object
IsPlaying
data_object
IsRecordingVideo
data_object
IsRunningInVR
data_object
IsRunningOnHandheld
data_object
Language
data_object
PhysicsTrace
data_object
Random
data_object
SceneTrace
data_object
Scripting
data_object
SteamId
data_object
TypeLibrary
Static Methods
functions
ChangeScene
functions
Close
functions
CreateWebSurface
functions
Disconnect
functions
Load
functions
SetRandomSeed
functions
TakeHighResScreenshot
functions
TakeScreenshot
Random
A shared random that is automatically seeded on tick
property
static
static
System.Random
Random
{
get
;
set
;
}
‹
1
›
one year ago
#1
Pundyly
Banned
Joined
Aug 2022
Posts
24
Score
3,674
what
7 months ago
#2
Valjua
Member
Joined
Jul 2024
Posts
1
Score
90
If anyone else was looking up how to make a random number generator and landed here, you can do Game.Random.Next(minvalue , maxvalue)
5 months ago
edited
5 months ago
#3
Лупa
Member
Joined
Jul 2025
Posts
4
Score
6,435
также можно использовать для float
Game.Random.Float( minVal, maxVal);
ну или так
Random.Shared.Float( minVal, maxVal )
‹
1
›
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.