> [!column|flex no-title]
>> [!menu-dark-red|ttl-c] [[Obsidian TTRPG Tutorials]] / [[Plugin Tutorials]] / [[Dataview]] / [[DataviewJS - List Random Notes]]
> [!column|4 no-title]
>> [!menu-green-1|ttl-c] [[Getting Started]]
>
>> [!menu-green-2|ttl-c] [[Plugin Tutorials]]
>
>> [!menu-green-3|ttl-c] [[Community Supported Games]]
>
>> [!menu-green-4|ttl-c] [[Obsidian TTRPG Tutorials/Templates/Templates\|Templates]]
> [!column|3 no-title]
>> [!patreon|ttl-c] [Patreon](https://www.patreon.com/JPlunkett) ([Starter Vault](https://www.patreon.com/posts/obsidian-patreon-96801399))
>
>> [!discord|ttl-c] [Obsidian TTRPG Community Discord](https://discord.gg/CdM9UCJdwU)
>
>> [!discord|ttl-c] [Obsidian Official Discord](https://discord.gg/8AF29UBUCa)
## List Random Notes
This will return random notes from your vault.
Change the WHERE section to contains rules about the notes you want to contain.
````
``` dataview
TABLE
file.name, tags, cost, weight
FROM ""
WHERE
SourceType = "Magic Item" AND contains(tags, "uncommon")
FLATTEN
date(now) as Now
FLATTEN
(file.mtime.year + file.mtime.hour + file.mtime.day + file.mtime.hour + file.mtime.minute + file.mtime.second + file.size + Now.hour + Now.minute + Now.second) * 15485863 as Hash
FLATTEN
((Hash * Hash * Hash) % 2038074743) / 2038074743 as Rand
WHERE
max(Rand)
SORT
Rand
LIMIT
10
```
````
![[Obsidian_lG27LsudDf.gif]]