生成した年
ブラウザ内で生成。スペースキーでもう一度生成。
好きな2つの年の間からランダムに年を選びます——歴史クイズ、物語の舞台設定、「その年に何があった?」ゲームに。
ブラウザ内で生成。スペースキーでもう一度生成。
ランダム年 の結果を JSON で取得できます。読み取り専用で、少量の利用なら API キーは不要、クロスオリジンのリクエストにも対応しています。
/api/v1/tools/random-yearcurl https://randnext.com/api/v1/tools/random-year?min=1990&max=2030&count=3&unique=true| パラメーター | 型 | 説明(英語) | 初期値 / 使える値 |
|---|---|---|---|
min | integer | Earliest year that may be returned, inclusive. | 初期値:19001〜9999 |
max | integer | Latest year that may be returned, inclusive. | 初期値:20261〜9999 |
unique | boolean | When true, the response will not contain the same year twice. | 初期値:truetrue または false |
sort | boolean | When true, return the selected years in ascending order. | 初期値:falsetrue または false |
count | integer | Number of results to return. | 初期値:11〜50 |
はい。最初と最後の年も選ばれる可能性があります。
はい。値はブラウザの暗号学的に安全な乱数源から得ており、どの値も同じ確率です。