## RandomScore
The RandomScore Widget assigns a random value to a score using the UUID of an areaeffectcloud.
| constructor | |
|--|--|
|Entity| the entity to save the result to |
|to|the max value(required)|
|from|the minimum value(default = 0)|
|objective|The scoreboard objective to save the values(default = objd_random)|
|targetFileName|force a specific file|
|targetFilePath|force a specific folder(other than objd)|
**Example:**
```dart
RandomScore(
Entity.Selected(),
from: 5
to: 100,
targetFileName: "random"
)
⇒ scoreboard players set #max objd_random 96
⇒ function mypack:objd/random
⇒ scoreboard players add @s objd_random 5
```
```mcfunction
# objd/random1
summon area_effect_cloud ~ ~ ~ {"Tags":["objd_random"]}
execute store result score @s objd_random run data get entity @e[tag=objd_random,sort=nearest,limit=1] UUIDMost 0.0000000001
scoreboard players operation @s objd_random %= #max objd_random
```