gpt-4.1-mini-2025-04-14· OpenAI
LMArena Human Preference 140K
Write a sinple random number generator for compute shader in wgsl, use frame count and…
- User
Write a sinple random number generator for compute shader in wgsl, use frame count and the x component of the invocation id as input.
- Assistant
Certainly! Here's a simple random number generator function in WGSL for a compute shader. It uses the frame count and the x component of the as inputs to produce a pseudo-random float between 0 and 1.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.