> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# crypt.random

> random byte generator ile raw random bytes uretir ve bunlari Lua string olarak dondurur.

<div className="real-function-page">
  ```lua theme={null}
  crypt.random(size: number): string
  ```

  ## Argümanlar

  <ParamField path={"size"} type={"number"} required>
    Allocation oncesinde integer conversion icinden gecen sayi. 0 veya daha kucuk degerler argument error olusturur.
  </ParamField>

  ## Dönüşler

  <ResponseField name={"bytes"} type={"string"}>
    Lua string olarak dondurulen raw generated bytes. Dondurulen string uzunlugu allocate edilen byte sayisiyla eslesir.
  </ResponseField>

  ## Örnek

  Raw bytes uret ve dondurulen Lua string uzunlugunu yazdir.

  ```lua theme={null}
  local bytes = crypt.random(16)

  print(bytes)
  print(#bytes)
  ```
</div>
